From 1bcd551db23ec2d6478e17ca87d0e92fe249c43b Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 12 Apr 2013 16:51:07 +0530 Subject: [PATCH] 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 2b2dbfe815..c0f0a07e52 100644 --- a/stock/doctype/item/item.py +++ b/stock/doctype/item/item.py @@ -242,7 +242,7 @@ class DocType(DocListController): if vals and ((self.doc.is_stock_item == "No" and vals.is_stock_item == "Yes") or vals.has_serial_no != self.doc.has_serial_no or vals.valuation_method != self.doc.valuation_method): - if self.check_if_sle_exists(): + if self.check_if_sle_exists() == "exists": webnotes.msgprint(_("As there are existing stock transactions for this \ item, you can not change the values of 'Has Serial No', \ 'Is Stock Item' and 'Valuation Method'"), raise_exception=1)