Skip to content
Rizwan Ahmed Frappe & ERPNext Consultant
← All writing

Frappe Framework v16 vs v15: What Broke and Why

The Frappe Framework changes between v15 and v16 that silently break custom apps: query builder refactor, permission hooks, and type casting changes.

Frappe Framework v16 vs v15: What Broke and Why

Written by Rizwan Ahmed, an ERPNext Functional Consultant/Business Analyst who has worked ERPNext implementations across Accounting, Selling, Inventory, and HR/Payroll.

Frappe Framework is the platform ERPNext runs on: the ORM, permission system, REST API, and desk UI all live here, one layer below ERPNext's business logic. v16 shipped as stable on January 12, 2026, the same day as ERPNext v16 (release thread, retrieved 2026-09-27).

This post covers the framework-level changes that affect any custom app, whichever ERPNext features you use. For what's new in ERPNext itself, see ERPNext v16 vs v15: What's New.

In short

  • Query builder: get_list()/get_all() use a new backend, and the default sort order changed from modified desc to creation in several places.
  • Permission hooks: has_permission hooks must now explicitly return True to grant access.
  • Minimums: Python 3.14+ and NodeJS 24+ are now required.
  • Frappe v17: not released. There is no version-17 branch.

What Changed in the Frappe Framework: v16 vs v15

Area v15 v16
Desk navigation Top-bar layout Persistent sidebar, redesigned Awesome Bar (cmd+k)
List query backend Legacy query builder New query-builder backend
Default sort order modified desc in most places creation in several places
has_permission hooks Implicit pass if no explicit denial Must explicitly return True to grant access
db.get_value single-value results Returned as string ("1") Cast to proper type (1)
frappe.db.commit() inside document hooks Allowed No longer supported
Minimum Python / Node No hard framework minimum Python 3.14+ / NodeJS 24+ required

Desk Navigation

The desk now has a persistent sidebar instead of the top bar, with the Awesome Bar (cmd+k) inside it. It's shared framework code, so ERPNext gets it too.

Not everyone likes it. One user in the release thread called the new navigation "quite poor," noting that commonly used modules end up at the third level (v16 release thread, retrieved 2026-09-27). Plan some retraining for users of the old layout.

Breaking Changes You Need to Plan For

These decide how long your migration takes:

  • Query builder refactor: get_list() and get_all() run through a new backend, and the default sort order changed. Code that relies on implicit ordering won't throw an error; it will return rows in a different sequence.
  • Permission hooks: has_permission hooks must now explicitly return True to grant access. The raise_exception parameter was also removed from frappe.permission.has_permission, in favor of print_logs. Audit any custom app written against the old implicit-pass behavior.
  • db.get_value type casting: a single-doctype result that came back as a string ("1") is now cast to its proper type (1). Loose string comparisons like if value == "1" will stop matching.
  • frappe.db.commit() in document hooks: no longer supported. Code that forces a commit mid-hook needs rewriting, not just re-testing.
  • Minimum versions: Python 3.14+ and NodeJS 24+. That's a hosting decision, so check your server stack before your code.

The full list is in Frappe's migration wiki: Migrating to version 16. ERPNext adds a few app-level changes, covered in the companion post.

Should You Upgrade Now?

Lower risk if your custom apps have:

  • No permission hook overrides.
  • No code relying on implicit sort order.
  • No direct calls to removed whitelisted methods.

Treat it as a migration project, not a version bump, if you have:

  • Custom apps with permission hooks.
  • Reports relying on implicit sort order.
  • Integrations calling whitelisted methods directly.

For the second group, budget time to review permission hooks and any code that uses db.get_value on single-doctype queries. A code review is a better check for these than running the test suite.

What's Next for the Frappe Framework

  • No v17 yet: frappe/frappe has only version-15, version-16, and their hotfix variants. develop carries 17.0.0-dev, a placeholder rather than a scoped feature set.
  • DuckDB support for reporting: pitched at the Frappeverse Mumbai 2026 keynote as enabling queries across roughly 600 million ledger entries in about two minutes. No release is tied to it.
  • Backend cleanup: replacing the raw-SQL interface with the parameterized Query Builder everywhere, and splitting 3,000+ line files into smaller services. Reported test coverage was roughly 87% for ERPNext and 77% for the Framework.

The keynote items come from a third-party recap by Cratorlabs (retrieved 2026-09-27), not an official transcript. None of this is a v17 feature list. Treat "coming in v17" claims as speculative until a version-17 branch exists.

Frequently Asked Questions

Is there a Frappe Framework v17?

No. There's no version-17 branch for frappe/frappe and no official feature list. A community thread (retrieved 2026-09-27) says development is community-driven and roadmap pages lag behind the actual work. 17.0.0-dev on develop is a placeholder.

What's the most disruptive breaking change in v16?

For most consultants, it's the query-builder refactor combined with the default sort-order change. Any report or API call that relied on implicit ordering now returns differently ordered data, with no error to catch in testing.

Does this affect ERPNext specifically?

Yes. ERPNext runs on the Framework, so every change here applies to any ERPNext instance. See the ERPNext application-layer post for the ERPNext-specific changes.

Conclusion

For customized instances, most of the migration risk sits in the Framework, not in ERPNext's feature list. Audit permission hooks, check anything relying on implicit query ordering, and confirm your hosting meets the Python/Node minimums before scheduling the migration. For v17, revisit when Frappe cuts the branch.

No comments yet

Leave a comment

Your email is never shown publicly. If you leave it, I may reply to you directly.

Contact

Have an ERP problem worth solving?

I can walk you through any of the work on this site on a call, including the NDA builds, on a demo instance.

Get in touch