From 00d79eb68d5aae658f79713ce971311026649b75 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 8 Jul 2015 14:32:27 +0530 Subject: [PATCH] minor fix --- erpnext/stock/doctype/manage_variants/manage_variants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/manage_variants/manage_variants.py b/erpnext/stock/doctype/manage_variants/manage_variants.py index b6784d3a2e..9bee7fae2d 100644 --- a/erpnext/stock/doctype/manage_variants/manage_variants.py +++ b/erpnext/stock/doctype/manage_variants/manage_variants.py @@ -36,8 +36,8 @@ class ManageVariants(Document): def get_attributes(self): attributes = {} self.set('attributes', []) - for d in frappe.db.sql("""select attribute, attribute_value from `tabVariant Attribute` as attribute, - `tabItem` as item where attribute.parent= item.name and item.variant_of = %s""", self.item_code, as_dict=1): + for d in frappe.db.sql("""select attribute, attribute_value from `tabVariant Attribute` as attr, + `tabItem` as item where attr.parent= item.name and item.variant_of = %s""", self.item_code, as_dict=1): attributes.setdefault(d.attribute, []).append(d.attribute_value) for d in attributes: attribute_values = set(attributes[d])