From c6e6859090fda95893ba60e3fe117c0a7738dd25 Mon Sep 17 00:00:00 2001 From: Shubh Doshi Date: Thu, 12 Mar 2026 17:52:10 +0530 Subject: [PATCH] fix: update invalid syntax for flags --- .../doctype/tax_withholding_entry/tax_withholding_entry.py | 4 ++-- erpnext/controllers/subcontracting_inward_controller.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/erpnext/accounts/doctype/tax_withholding_entry/tax_withholding_entry.py b/erpnext/accounts/doctype/tax_withholding_entry/tax_withholding_entry.py index 589ff28ace8..fa0adfae5b8 100644 --- a/erpnext/accounts/doctype/tax_withholding_entry/tax_withholding_entry.py +++ b/erpnext/accounts/doctype/tax_withholding_entry/tax_withholding_entry.py @@ -197,7 +197,7 @@ class TaxWithholdingEntry(Document): new_entry = frappe.copy_doc(old_entry) new_entry.update(values_to_update) - new_entry.skip_docstatus_validation = True + new_entry.flags.skip_docstatus_validation = True new_entry.insert() docs_needing_reindex.add((old_entry.parenttype, old_entry.parent)) @@ -336,7 +336,7 @@ class TaxWithholdingEntry(Document): "withholding_date": None, } new_entry.update(values_to_update) - new_entry.skip_docstatus_validation = True + new_entry.flags.skip_docstatus_validation = True new_entry.insert() docs_needing_reindex.add((entry.parenttype, entry.parent)) diff --git a/erpnext/controllers/subcontracting_inward_controller.py b/erpnext/controllers/subcontracting_inward_controller.py index 876f25c51fd..77a6a9ea19d 100644 --- a/erpnext/controllers/subcontracting_inward_controller.py +++ b/erpnext/controllers/subcontracting_inward_controller.py @@ -721,7 +721,7 @@ class SubcontractingInwardController: "Subcontracting Inward Order Item", item.against_fg, "item_code" ), ) - scio_rm.skip_docstatus_validation = True + scio_rm.flags.skip_docstatus_validation = True scio_rm.insert() scio_rm.submit() item.db_set("scio_detail", scio_rm.name) @@ -868,7 +868,7 @@ class SubcontractingInwardController: warehouse=extra_item.s_warehouse, is_additional_item=True, ) - doc.skip_docstatus_validation = True + doc.flags.skip_docstatus_validation = True doc.insert() doc.submit() @@ -956,7 +956,7 @@ class SubcontractingInwardController: "Work Order", self.work_order, "subcontracting_inward_order_item" ), ) - doc.skip_docstatus_validation = True + doc.flags.skip_docstatus_validation = True doc.insert() doc.submit()