From 6b2199f33450dd6dfa5383cccbb98bfef40b8ba4 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 29 Apr 2022 16:21:50 +0530 Subject: [PATCH] fix(unicommerce): set `name` also when syncing new item --- ecommerce_integrations/unicommerce/product.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ecommerce_integrations/unicommerce/product.py b/ecommerce_integrations/unicommerce/product.py index b44f78c5..f33ae37f 100644 --- a/ecommerce_integrations/unicommerce/product.py +++ b/ecommerce_integrations/unicommerce/product.py @@ -99,6 +99,7 @@ def _create_item_dict(uni_item): item_dict["barcodes"] = _get_barcode_data(uni_item) item_dict["disabled"] = int(not uni_item.get("enabled")) item_dict["item_group"] = _get_item_group(uni_item.get("categoryCode")) + item_dict["name"] = item_dict["item_code"] # when naming is by item series return item_dict