When receiving items into the factory, rather than using ERPNext’s serial number format, is it possible (maybe using a script?) to auto-generate a custom serial number format?
I would prefer to use a different format rather than ABCD.####
If you go into the edit doctype of the production order, you can modify the naming series here:
You can also use a script. If you go into the .py file of the doctype, you can add something like this:
class Document(Document): def autoname(self): prefix = self.document_des revision = self.revision self.name = make_autoname(prefix + '-.#####.' + '_' + revision)
I really appreciate your help on this.