mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
fix: check for submit permissions instead of write permissions when updating status (backport #53697) (#53703)
Co-authored-by: diptanilsaha <diptanil@frappe.io> fix: check for `submit` permissions instead of `write` permissions when updating status (#53697)
This commit is contained in:
@@ -1803,7 +1803,7 @@ def make_work_orders(items, sales_order, company, project=None):
|
||||
|
||||
@frappe.whitelist()
|
||||
def update_status(status, name):
|
||||
so = frappe.get_doc("Sales Order", name, check_permission="write")
|
||||
so = frappe.get_doc("Sales Order", name, check_permission="submit")
|
||||
so.update_status(status)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user