mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-19 03:17:55 +00:00
* fix: validate permission before updating status (#53651)
(cherry picked from commit 8e17c722fb)
# Conflicts:
# erpnext/buying/doctype/purchase_order/purchase_order.py
# erpnext/selling/doctype/sales_order/sales_order.py
# erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
* chore: resolve conflicts
---------
Co-authored-by: diptanilsaha <diptanil@frappe.io>
This commit is contained in:
@@ -889,7 +889,7 @@ def get_list_context(context=None):
|
||||
|
||||
@frappe.whitelist()
|
||||
def update_status(status, name):
|
||||
po = frappe.get_lazy_doc("Purchase Order", name)
|
||||
po = frappe.get_lazy_doc("Purchase Order", name, check_permission="write")
|
||||
po.update_status(status)
|
||||
po.update_delivered_qty_in_sales_order()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user