From a8d8abc670ef0c367f7f3fc38c8c56bf4676cbff Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 4 Apr 2013 15:31:03 +0530 Subject: [PATCH] small fixes in item --- stock/doctype/item/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock/doctype/item/item.py b/stock/doctype/item/item.py index 43bae2c9e77..2a2fa584717 100644 --- a/stock/doctype/item/item.py +++ b/stock/doctype/item/item.py @@ -40,7 +40,7 @@ class DocType(DocListController): self.update_website() bin = sql("select stock_uom from `tabBin` where item_code = '%s' " % self.doc.item_code) - if bin and cstr(bin[0][0]) != cstr(self.doc.stock_uom): + if bin and cstr(bin[0][0]) and cstr(bin[0][0]) != cstr(self.doc.stock_uom): msgprint("Please Update Stock UOM with the help of Stock UOM Replace Utility.") raise Exception check_list = []