small fixes in item

This commit is contained in:
Nabin Hait 2013-04-04 15:31:03 +05:30
parent 9274f2772c
commit a8d8abc670

View File

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