From 755f1f68419c8e44a5e16460613e698104296a84 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Wed, 26 Aug 2015 12:59:29 +0530 Subject: [PATCH] Fixed validation to prevent duplication of Item Variants in case of Numeric Attributes --- erpnext/stock/doctype/item/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/item/item.py b/erpnext/stock/doctype/item/item.py index 08350afa72..d445582f72 100644 --- a/erpnext/stock/doctype/item/item.py +++ b/erpnext/stock/doctype/item/item.py @@ -572,7 +572,7 @@ def find_variant(item, args): for attribute, value in args.items(): for row in variant.attributes: - if row.attribute==attribute and row.attribute_value==value: + if row.attribute==attribute and row.attribute_value== cstr(value): # this row matches match_count += 1 break