Set Invoice Number only when document is submitted

I really do like many concept behind Frappe. But the naming thing seem to be a stopper to me. In my country (like many other) the invoice number should be running with with MM.YY of account posting date and happen when document submitted.

This topic was discussed multiple times. But I still can’t find the resolution.