Hello Team,
I am planning to upgrade ERPNext and I have some concerns regarding existing customizations.
Currently, I have made server-side customizations by modifying core files
I understand from the forum that:
-
Client-side customizations (Custom Fields, Client Scripts, Print Formats, etc.) are usually safe during upgrades
-
Core/server-side changes may be overwritten during
bench update
I came across a suggestion to:
Clone the existing system (or VM), perform the upgrade in the clone, verify functionality, and then proceed with production.
My questions are:
-
Is cloning the environment and testing the upgrade a recommended and sufficient approach when core files are modified?
-
Even after successful testing in a cloned environment, will
bench updatestill overwrite the core changes in production? -
For existing core changes, is the only safe long-term solution to move the logic into a custom app using hooks / overrides?
-
Are there any recommended best practices for upgrading when core changes already exist?
Any guidance from the community would be greatly appreciated.
Thanks in advance