After a recent ERPNext update (we are on v16), the Project and Cost Center fields no longer appear in the Sales Order header form.
Previously, these fields were visible in the “Accounting Dimensions” section in the header, and we could assign a project directly to each Sales Order. Now that section is completely hidden in new Sales Orders.
What we have checked:
“Enable Accounting Dimensions” is enabled in Accounts Settings (Accounting Analytics section) — this was suggested in a related forum thread but it was already enabled and did not fix the issue
In Customize Form → Sales Order, the field “project” exists, is not hidden, has no “Depends On” condition
The “Accounting Dimensions” section break also has no hidden condition and “Collapsible” is unchecked
The fields do appear at the item line level, but not in the header
Old Sales Orders (created before the update) still show the Project field in the header correctly — the difference is that those older documents have the “project” field filled in the document header, while new ones don’t
How can we restore the Project and Cost Center fields in the Sales Order header so users can assign them directly, as before?
That’s interesting, especially since the Project field still shows up on older Sales Orders where it already has a value, but disappears on new ones.
Since you’ve already checked the settings and field configuration, I’m wondering if something changed in v16 that’s affecting how those fields are displayed.
Have you tried saving a new Sales Order as a draft and reopening it to see if the fields appear? Also, are you using any custom scripts that might affect the Sales Order form?
It would also help to know your exact ERPNext and Frappe versions.
I’ve seen a few similar reports involving Project and Cost Center fields in v16, so I’m curious whether this might be related.
Saving as draft and reopening: Yes, the fields do not appear even after saving and reopening a new Sales Order.
Custom scripts: No, we don’t have any custom scripts affecting the Sales Order form.
Versions: Frappe 16.53.0 / ERPNext 16.52.1
We have found something interesting: if we create a new Sales Order manually from scratch, the Accounting Dimensions section (with Project and Cost Center) does appear in the header. However, if the Sales Order is created from a Quotation, the Project field is not carried over from the Quotation to the Sales Order, and the Accounting Dimensions section does not appear in the header of that Sales Order.
We also noticed that the Cost Center field appears highlighted in yellow in the form customization, suggesting it was added as a custom field at some point, while Project is a standard field that is no longer rendering in the header when the Sales Order comes from a Quotation.
Thanks for following up with the versions and additional testing!
That helps narrow things down considerably. Since manually created Sales Orders display the Accounting Dimensions section correctly, but Sales Orders generated from Quotations don’t, I would focus on the Quotation → Sales Order mapping rather than the general field visibility settings.
One thing worth checking: when you create a Sales Order from a Quotation, does the Project value exist in the document data but simply fail to display, or is the value missing entirely?
It would also be interesting to check whether the Project and Cost Center values are present at the item level in the converted Sales Order.
There are some related upstream discussions about accounting dimensions in v16, although I haven’t confirmed that they explain this specific behavior.
I would avoid adding a Client Script until we know whether the problem is field mapping or conditional rendering.
Thanks again for sharing your findings. This looks like a useful case to investigate further!