we are currently finalizing the migration from V12 to V13 of ERPNext and I recognized a behavior change which makes me some headaches.
We have several custom doctypes which contain tables. Those table entries are referenced in other tables by the users. Here is an example screenshot from our test system:
In the first table we create child doctypes, which then can be referenced in the second table (now only showing the hashcode). To distinguish the items, we used a custom format for
autoname. This works with V12 but with V13 there was a change how autoname works with table items.
set_new_name() now simply calls
make_autoname() for table doctypes:
elif getattr(doc.meta, "istable", False): doc.name = make_autoname("hash", doc.doctype)
Here is the corresponding commit:
Can someone tell me the reason for this change? And also do you have any ideas on how to solve the issue? I only know that I could display additional informations in the drop down menu, but this doesn’t help me when looking at the table, also adding a new field with the generated name would partially help, but also takes up space in the table.
EDIT: Oh, i just tested if i remove istable from the doctype. Now autonaming works like before, but can someone tell me if this will cause other issues?