commit | 5604f987f2ad7c79b06b4e8b1fd3407922f43b5e | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Wed Dec 31 12:37:11 2014 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Wed Dec 31 12:37:11 2014 +0530 |
tree | 0dd4f836384de305f936a2e974ad75456e106ca1 | |
parent | a74468b35378eb01074295469fb1091d60c6d374 [diff] |
item validation in bom
diff --git a/erpnext/manufacturing/doctype/bom/bom.py b/erpnext/manufacturing/doctype/bom/bom.py index 199ade9..bab1b43 100644 --- a/erpnext/manufacturing/doctype/bom/bom.py +++ b/erpnext/manufacturing/doctype/bom/bom.py
@@ -57,6 +57,9 @@ last_purchase_rate, is_manufactured_item from `tabItem` where name=%s""", item_code, as_dict = 1) + if not item: + frappe.throw(_("Item: {0} does not exist in the system").format(item_code)) + return item def validate_rm_item(self, item):