Commit graph

1 commit

Author SHA1 Message Date
SUBHANKAR DHAR
4678d517ae fix: remove frappe.db.commit() from OnSite WIP server script
Frappe v16's server script sandbox does not allow explicit commits —
the framework manages the transaction automatically after the event
handler runs. Calling frappe.db.commit() inside a DocType Event script
throws AttributeError: module has no attribute 'commit'.

Also adds fix_server_script_commit.py to patch already-deployed instances.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-16 15:32:38 +05:30