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 = []