fix: make BOM required in SCR Item

This commit is contained in:
Sagar Sharma
2022-11-05 15:50:39 +05:30
parent 761e9df1bf
commit 760c26e9c0
2 changed files with 22 additions and 0 deletions

View File

@@ -89,6 +89,9 @@ class SubcontractingController(StockController):
if bom.item != item.item_code:
msg = f"Please select an valid BOM for Item {item.item_name}."
frappe.throw(_(msg))
else:
msg = f"Please select a BOM for Item {item.item_name}."
frappe.throw(_(msg))
def __get_data_before_save(self):
item_dict = {}