mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
Merge pull request #53395 from shubhdoshi21/flag-fix
fix: update invalid syntax for flags
This commit is contained in:
@@ -197,7 +197,7 @@ class TaxWithholdingEntry(Document):
|
|||||||
|
|
||||||
new_entry = frappe.copy_doc(old_entry)
|
new_entry = frappe.copy_doc(old_entry)
|
||||||
new_entry.update(values_to_update)
|
new_entry.update(values_to_update)
|
||||||
new_entry.skip_docstatus_validation = True
|
new_entry.flags.skip_docstatus_validation = True
|
||||||
new_entry.insert()
|
new_entry.insert()
|
||||||
|
|
||||||
docs_needing_reindex.add((old_entry.parenttype, old_entry.parent))
|
docs_needing_reindex.add((old_entry.parenttype, old_entry.parent))
|
||||||
@@ -336,7 +336,7 @@ class TaxWithholdingEntry(Document):
|
|||||||
"withholding_date": None,
|
"withholding_date": None,
|
||||||
}
|
}
|
||||||
new_entry.update(values_to_update)
|
new_entry.update(values_to_update)
|
||||||
new_entry.skip_docstatus_validation = True
|
new_entry.flags.skip_docstatus_validation = True
|
||||||
new_entry.insert()
|
new_entry.insert()
|
||||||
|
|
||||||
docs_needing_reindex.add((entry.parenttype, entry.parent))
|
docs_needing_reindex.add((entry.parenttype, entry.parent))
|
||||||
|
|||||||
@@ -721,7 +721,7 @@ class SubcontractingInwardController:
|
|||||||
"Subcontracting Inward Order Item", item.against_fg, "item_code"
|
"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.insert()
|
||||||
scio_rm.submit()
|
scio_rm.submit()
|
||||||
item.db_set("scio_detail", scio_rm.name)
|
item.db_set("scio_detail", scio_rm.name)
|
||||||
@@ -868,7 +868,7 @@ class SubcontractingInwardController:
|
|||||||
warehouse=extra_item.s_warehouse,
|
warehouse=extra_item.s_warehouse,
|
||||||
is_additional_item=True,
|
is_additional_item=True,
|
||||||
)
|
)
|
||||||
doc.skip_docstatus_validation = True
|
doc.flags.skip_docstatus_validation = True
|
||||||
doc.insert()
|
doc.insert()
|
||||||
doc.submit()
|
doc.submit()
|
||||||
|
|
||||||
@@ -956,7 +956,7 @@ class SubcontractingInwardController:
|
|||||||
"Work Order", self.work_order, "subcontracting_inward_order_item"
|
"Work Order", self.work_order, "subcontracting_inward_order_item"
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
doc.skip_docstatus_validation = True
|
doc.flags.skip_docstatus_validation = True
|
||||||
doc.insert()
|
doc.insert()
|
||||||
doc.submit()
|
doc.submit()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user