fix: make BOM required in SCR Item

(cherry picked from commit 760c26e9c0)
This commit is contained in:
Sagar Sharma
2022-11-05 15:50:39 +05:30
committed by Mergify
parent bd7435ce1e
commit 3f79a057e4
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 = {}