Everytime I update erpnext with bench update, I have to use bench update --reset.
And everytime I loose my custom print formats and few other things that I have to set manually.
This is the error I get the error when I do a simple bench update:
Cannot proceed with update: You have local changes in app “erpnext” that are not committed.
so I tried to go in the erpnext folder and do a git stash and got this message:
/home/frappe/frappe-bench/apps/erpnext# git stash
No local changes to save
you should create custom App and store all your Custom Fields and data of Doctype like print formats, Terms & Condition etc in that app. This is the best way to maintain changes done manually in ERP Next.
To do that follow below guide
If you are looking to create a custom app to store custom fields and store this on GitHub (or other online repositories), the following will take you through the process.
The following is for the latest stable ERPNext (V11).
1. Setup GitHub
Although I am using GitHub, you should be able to follow this with other providers such as
BitBucket, GitLab, SourceForge, Launchpad etc…
First, Create an account on GitHub.
Next, lock your account down with 2FA ( https://github.com/settings/security)…
here is what i do…
once you are in the erpnext apps folder… do
it will show something like this.
since it is untracked…
git add .
note the period " . " at the end… this means git will add all untracked file shown in red.
then commit the change
git commit -a
now go back to the frappe-bench folder and do the bench update. follow the same procedure for other apps as well.
Thanks I’ll try your suggestions and let you know!