From 8569b7400a2a00be18702e479ad028463446ef8a Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 23 Feb 2012 10:46:24 +0530 Subject: [PATCH] Update erpnext/production/doctype/bill_of_materials/bill_of_materials.py --- .../production/doctype/bill_of_materials/bill_of_materials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/production/doctype/bill_of_materials/bill_of_materials.py b/erpnext/production/doctype/bill_of_materials/bill_of_materials.py index 117742576d..decb9fefe2 100644 --- a/erpnext/production/doctype/bill_of_materials/bill_of_materials.py +++ b/erpnext/production/doctype/bill_of_materials/bill_of_materials.py @@ -268,7 +268,7 @@ class DocType: def check_if_item_repeated(self, item, op, check_list): if [cstr(item), cstr(op)] in check_list: - msgprint("Item %s has been entered twice against same operation" % d.item_code, raise_exception = 1) + msgprint("Item %s has been entered twice against same operation" % item, raise_exception = 1) else: check_list.append([cstr(item), cstr(op)])