fix: no attribute error in old subcontracting flow

(cherry picked from commit 51751a7a05)
This commit is contained in:
Mihir Kandoi
2025-07-10 22:46:56 +05:30
committed by Mergify
parent f70ce62f2a
commit 5fce8191f9

View File

@@ -464,7 +464,7 @@ class SubcontractingController(StockController):
i += 1
def __remove_serial_and_batch_bundle(self, item):
if item.serial_and_batch_bundle:
if item.get("serial_and_batch_bundle"):
frappe.delete_doc("Serial and Batch Bundle", item.serial_and_batch_bundle, force=True)
def __get_materials_from_bom(self, item_code, bom_no, exploded_item=0):