How to stop customer_name / supplier_name from changing
Pick one:
Change ERPNext naming settings
Set “Customer Naming By” to Naming Series (Selling Settings).
Set “Supplier Naming By” to Naming Series (Buying Settings).
This prevents after_rename from overwriting customer_name / supplier_name.
Code override (UPH)
Add a flag in UPH when the rename is coming from Party Master sync, and skip the ERPNext after_rename update if that flag is set.
If you want this, I can implement a patch.
If you want, tell me which path you prefer and I’ll apply it.
How to stop customer_name / supplier_name from changing
Pick one:
Change ERPNext naming settings
Set “Customer Naming By” to Naming Series (Selling Settings).
Set “Supplier Naming By” to Naming Series (Buying Settings).
This prevents after_rename from overwriting customer_name / supplier_name.
Code override (UPH)
Add a flag in UPH when the rename is coming from Party Master sync, and skip the ERPNext after_rename update if that flag is set.
If you want this, I can implement a patch.
If you want, tell me which path you prefer and I’ll apply it.