commit | 2ae6cfda5f48741c2098c9fe6857238982b53f5a | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Fri Apr 06 11:49:04 2018 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Fri Apr 06 11:49:04 2018 +0530 |
tree | b752bf2d535889b4846dab7e0e2b4acbcee0808c | |
parent | 22d9f0a4aa313060d5cb48e96cd7ade2d38397c7 [diff] |
[Fix] Item variant details report (#13545)
diff --git a/erpnext/stock/report/item_variant_details/item_variant_details.py b/erpnext/stock/report/item_variant_details/item_variant_details.py index 7379eb4..c7ca388 100644 --- a/erpnext/stock/report/item_variant_details/item_variant_details.py +++ b/erpnext/stock/report/item_variant_details/item_variant_details.py
@@ -40,7 +40,9 @@ name = item_dict["variant_name"] for d in attribute_list: - item_dict[d] = attr_val_map[name][d] + attr_dict = attr_val_map[name] + if attr_dict and attr_dict.get(d): + item_dict[d] = attr_val_map[name][d] item_dict["Open Orders"] = order_count_map.get(name) or 0