From 4471666c8c82c4ad58a2977c98ff15004fd2ec31 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 07:11:04 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20bypass=20project=20permission=20check=20?= =?UTF-8?q?when=20updating=20consumed=20material=20=E2=80=A6=20(backport?= =?UTF-8?q?=20#55645)=20(#55707)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: bypass project permission check when updating consumed material cost (cherry picked from commit 4b0b7adeee9ce4584bbe2185e1ecba7a6e578c8d) # Conflicts: # erpnext/stock/doctype/stock_entry/stock_entry.py * chore: resolve conflicts --------- Co-authored-by: pandiyan Co-authored-by: Mihir Kandoi --- erpnext/stock/doctype/stock_entry/stock_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index fdd72ae3c94..002127e2bb7 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -741,7 +741,7 @@ class StockEntry(StockController, SubcontractingInwardController): amount += additional_cost_amt project = frappe.get_doc("Project", project) project.total_consumed_material_cost = amount - project.save() + project.save(ignore_permissions=True) def validate_item(self): stock_items = self.get_stock_items()