Naming Series Reset by Year

Hi,

I have a naming series like INV/.YY.MM./.##### , I want to make the counter reset on each year only. So it keeps using same counter from previous month. How should I do to achieve that?

Thank you.

Don’t add MM to the prefix.

Thank you for your reply.
Fixed by adding custom placeholder for month instead of MM, then adding autoname function in python file to replace it with current month.

1 Like

Hi @michaeldvr where you call the autoname function? on_update method?

autoname is a method supported by the Document class. This is called while naming the document. You needn’t call it manually in another method unless required.

Create it as your class method, it will be called on the first time the document is saved.

Hi Sir,

can you share the detail how did you accomplish this one?
thank you