Keep your ERPNext site on the latest release
When a customer reports a problem, our support team often finds that it is already fixed. The fix was released weeks earlier in a newer version of ERPNext, but the customer's site is still on an older one. So our advice is simple: update your site to the latest release.
Many customers hesitate at this point, and their question is fair: "Will the update break our customisations?"
This page answers that question. It explains why staying on the latest release of ERPNext v15 or v16 pays off, and how to update safely, without surprises in production.
Why stay on the latest release
ERPNext gets a new patch release almost every week. Each one carries fixes that other businesses already reported and our team already solved. When you skip them, you keep problems that are already fixed.
- Faster and more stable. Many releases improve how ERPNext handles heavy work: stock reposting, large reports, background jobs and big imports. A slow site is often fixed by an update.
- Safer. Security fixes go into the latest releases. An old release keeps every weakness that was found after it, and those weaknesses are publicly listed once they are fixed.
- Fewer bugs. When you report a problem, the first thing our team checks is your version. Often the answer is "this is fixed in a newer release". You can skip that wait completely.
- Up to date with the law. Tax, GST, e-invoice and payroll rules change. Updates keep ERPNext in line with them, so your filings are correct.
- New features you already pay for. Version 16 brings new features and a faster, cleaner interface. You get them at no extra cost.
- Faster support. We can reproduce and fix a problem on the latest release quickly. On an old release, we first have to ask you to update.
- Cheaper in the long run. Small, regular updates bring small changes, which are quick to test. A jump of many months brings hundreds of changes at once, and that takes days of your partner's time.
Staying behind costs more than updating
| Update every few weeks | Update once or twice a year | |
|---|---|---|
| Changes in one update | A few dozen fixes | Hundreds of changes at once |
| Testing effort | An hour or two on a staging copy | Days of testing and fixing |
| Risk to customisations | Small and easy to trace to one change | Hard to trace: many changes landed together |
| Known bugs on your site | Few: most are already fixed | Many that others no longer have |
| Security | Current fixes in place | Known, published weaknesses stay open |
| Partner cost | Small and planned | Large and unplanned |
One-minute check: are you behind?
- In ERPNext, go to Help > About and note your ERPNext version (for example
v15.120.0). - Compare it with the latest release on the ERPNext releases page.
- If your version is more than 4 weeks old, you are missing fixes. Plan an update this month.
"But will it break my customisations?"
This is the most common reason to put off an update, and the worry is fair. Sometimes a fix changes how a part of ERPNext works inside. A customisation that depends on that part can then stop working.
The answer is not to stop updating. The answer is to test the update on a copy first, and to build customisations that survive updates.
What usually breaks
- Custom code that replaces or copies standard ERPNext code, instead of adding to it.
- Custom scripts that depend on the exact layout of a standard form or report.
- Custom apps that were built for one version and never tested on newer releases.
What usually survives
- Custom Fields, Property Setters, Print Formats and Workflows made from the screen.
- Custom apps that use the standard extension points (hooks and events) to add behaviour.
How to keep the risk small
- Ask your partner to review your custom apps once for upgrade safety. Code that overrides standard ERPNext code is the main risk.
- Keep a separate branch of each custom app for each ERPNext version (for example
version-15andversion-16). - Update often. A small update is easy to test, and when something breaks you know which change caused it.
The safe way to update: staging first, production later
Never test an update on your live site. Test it on a copy of your live site (a staging site), and update production only after the copy works.
- Read what changed. Check the release notes since your current version. Note anything that touches the modules you use.
- Make a staging copy. Create a staging site with the same apps as production, and restore a recent production backup on it.
- Update staging. Update the staging site to the latest release.
- Test your key work. Have the people who use ERPNext every day run their normal tasks on staging (see the checklist below).
- Fix what broke. If a customisation fails, your partner fixes it in the custom app and you test again on staging.
- Update production. When staging works, update production outside working hours.
- Check production. Run a few key tasks on production the next morning. Keep the pre-update backup until you are sure.
For a small patch update, steps 1 to 7 can take one afternoon. For a move to a new major version (v15 to v16), plan a week of testing.
How to do it on Frappe Cloud
How you update depends on where your site runs.
Site on a public (shared) bench
You have nothing to do. Frappe Cloud builds every public bench again each Wednesday with the latest releases, and moves your site to the new build (update schedule):
- Updates run only between 21:00 and 05:00 in your site's timezone.
- Frappe Cloud takes a backup first. Downtime is usually less than one minute.
- If the update fails, Frappe Cloud moves your site back to the old build. The update shows the status Recovered and your site keeps working.
You can see each update in your site's Updates tab.
Site on a private bench (sites with custom apps)
Most sites with custom apps run on a private bench, where you decide when to update. This is where sites fall behind, often because automatic updates were turned off and never turned back on.
Set up staging once
- Create a second bench group for staging, with the same apps and the same custom app branches as production (create a bench group).
- Create a new site on the staging bench, for example
yourcompany-staging. - Copy production data to it: in your production site, open the Backups tab, click the three dots on an offsite backup, select Restore Backup on Another Site, select the staging site and click Restore (restore steps).
Each time you update
- Restore a fresh production backup on staging (step 3 above), so you test on current data.
- On the staging bench, click Show Updates, keep the apps you want to update selected, and click Deploy (updating a bench). Wait until the staging site is on the new build.
- Test on staging.
- When staging works, do the same Show Updates > Deploy on the production bench, with the same app versions.
- If automatic updates are on for the site, it updates in non-working hours after the deploy. Frappe Cloud takes a backup first and moves the site back if the update fails.
Turn automatic updates back on when you have tested your custom apps. Click Update on the site's dashboard, then Configure, and turn on Enable Auto Update (how to).
Do not use in-place updates for this. They take no backup and skip failing patches (in-place updates).
Moving to a new major version (v15 to v16)
- Do it on the staging site first: open the site dashboard and go to Actions > Version Upgrade (version upgrade).
- If you have custom apps, select the branch built for the new version. Frappe Cloud creates a new bench and moves the site there.
- Test for a week. Then run the same Version Upgrade on production, outside working hours.
What to test on staging
Test the work your business does every day, not every screen. Ask one person from each team to spend 15 minutes on these, and to check only what they use.
- Create and submit a Sales Order, a Delivery Note and a Sales Invoice.
- Create and submit a Purchase Order, a Purchase Receipt and a Purchase Invoice.
- Make and submit a Payment Entry, and reconcile a bank transaction.
- Submit a Stock Entry and check the stock balance.
- Run the reports you use most: General Ledger, Accounts Receivable, Stock Balance.
- Print your main documents (invoice, delivery note) with your print formats.
- Run a payroll entry and open a salary slip, if you use Frappe HR.
- Generate an e-invoice or e-way bill, if you use India Compliance.
- Check every custom screen, button and report your custom apps add.
- Check integrations: payment gateway, email, website, mobile app, any connected system.
Automate the standard checks with Release Manager
Partners and technical teams can run many of these checks automatically with two open-source Frappe apps:
- release_manager: a dashboard to add the sites you want to test, pick test cases, run them now or on a schedule, and review the results step by step.
- release_tests: the test engine. It logs in to a site over the API and runs standard flows for each installed app (for example ERPNext and India Compliance), for v15 and v16.
To use them on Frappe Cloud:
- Install both apps on a separate control site: release_tests first, then release_manager.
- On your staging site, create an API key and secret for a test user (User > API Access > Generate Keys).
- In Release Manager, add the staging site as a Testing Site, click Test Connection, and run the test cases.
The tests create test records, such as items and invoices. Point them at your staging site only, never at production. They cover standard ERPNext flows, not your custom apps, so still test your customisations by hand with the checklist above.
For partners: make updates part of your service
Your customers trust you with their customisations, so they ask you before they update. That makes you the one who decides whether fixes reach them.
- Offer an update care plan. For example: a monthly update on staging, a test of the customer's custom apps, and a planned production update. It is predictable work for you, and a predictable cost for the customer.
- Build custom apps to survive updates. Use hooks, events and Custom Fields instead of overriding standard code. Keep one branch per ERPNext version.
- Set up staging for every customer with custom apps. It turns "we can't guarantee anything" into "we tested it on your data".
- Turn automatic updates back on once the custom apps are tested. A site that updates on its own needs fewer support calls from you.
- Plan v16 early. Prepare a
version-16branch of each custom app before your customers ask for it.
A customer on the latest release has fewer problems, raises fewer tickets, and stays happy with the product you sold them.
Do this today
- Check your version: Help > About in ERPNext.
- If it is more than 4 weeks old, book an update on staging this month. If you work with a partner, send them this page.
- If you are on a private bench, check whether Enable Auto Update is off, and plan when to turn it back on.
Questions about updating? Raise a ticket at support.frappe.io and our team will help you plan it.