when creating a Sales Order via code, I can not figure out, how to let the system know to use the naming_series in the title. All Sales Orders have only SO- as title.
@max_morais_dmm Of course. The example obove creates one or multiple (in a loop) Sales Order(s) with the title “SO-”.
Of course i want it to be full naming series (which is saved in the naming_series column), not only “SO-”, but I don’t now how to get the “next” naming_series or tell the insert() method to generate it.
@ci2016
May be you have customized the “Naming Series” options and “SO-” is not there. Thats why while you are passing “SO-”, it is taking as a valid one and assigning default naming series.
Step 1: Just click on update button.
Step 2: Goto Sales Order and reload the form.
Step 3: Try to generate a new sales order number and see if the generated number is like SO-0001 etc.
As you can see in my screenshot above the naming_series works correctly in the column “ID”. Th Problem is the Column “Bezeichnung”, which is the title column does not show the value, which is in the column “ID”.
As you can see on the right side, I have a naming series, which I want to have. My only issue is that I am not able to use that column as my title column. I tried everything from customize form to changing the doctypes. I also installed a fresh instance of ERPNext and tried to figure that out.
I didn’t find any documentation about using the naming series as title. I also want this to work for customers as “CUST-0001”, “CUST-0002”, or Items “ITEM-0001”, “ITEM-0002” and so on. In a fresh bitnami stack of ERPNext there were Items named ITEM-0001, ITEM-0002 and ITEM-0003, but creating the next item, it was named by the Item Name. This seems very strange to me and I am stuck with this issue.