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>