From 6896216276043ba088e3f5146cd09ecae962e326 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Wed, 18 Jun 2025 18:03:04 +0530 Subject: [PATCH] fix: permission issue during reposting (cherry picked from commit dcc9fc2fece755e79dc8d3a162c296ca9e397041) --- .../stock/doctype/stock_reconciliation/stock_reconciliation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py index d3b17cd3ad8..d025de845e1 100644 --- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py +++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py @@ -1105,6 +1105,7 @@ class StockReconciliation(StockController): new_sle.actual_qty = row.current_qty * -1 new_sle.valuation_rate = row.current_valuation_rate new_sle.serial_and_batch_bundle = row.current_serial_and_batch_bundle + new_sle.flags.ignore_permissions = 1 new_sle.submit() creation = add_to_date(sle_creation, seconds=-1)