I am experiencing an issue where the autonaming rule for a custom Doctype (Physical Audit) is not updating as expected after modifying the naming rule in the Doctype configuration.
Here are the details:
- Issue:
- I changed the naming rule for the
Physical AuditDoctype to use a new format:{node_details}_{DD}_{MM}_{YY}_{####}. - Despite this change, when I save a new record, the name still gets generated with the old prefix:
state_24_12_12. - The new autonaming format is not being applied.
- Steps Taken:
- Verified the naming rule in the Doctype settings (it’s correctly updated to the new format).
- Ran
bench migrateto ensure database schema and configuration changes are applied. - Tried uninstalling and reinstalling the app where the Doctype resides.
- Verified that there are no custom server scripts or client scripts interfering with the autoname logic.
- Checked for possible cache issues, including restarting the server.
- Environment:
- Frappe version: 15.48.0
- Expected Behavior:
- When saving a new record, the generated
nameshould follow the updated autonaming format ({node_details}_{DD}_{MM}_{YY}_{####}).
- Actual Behavior:
- The saved record continues to follow the old naming format (
state_24_12_12).
- Additional Notes:
- I have ensured that there is no custom logic or override in place for the
autonamemethod. - This issue persists even after clearing caches and restarting the server.
I am looking for guidance or troubleshooting steps to resolve this issue. Any help would be appreciated!