summaryrefslogtreecommitdiff
path: root/fixco_custom
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom')
-rwxr-xr-xfixco_custom/models/detail_order.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/fixco_custom/models/detail_order.py b/fixco_custom/models/detail_order.py
index 02864df..7d78122 100755
--- a/fixco_custom/models/detail_order.py
+++ b/fixco_custom/models/detail_order.py
@@ -257,7 +257,9 @@ class DetailOrder(models.Model):
product_quantities = {}
for item in items:
- key = item.get('sku')
+ key = item.get('sku', "")
+ if key == "" or key == False:
+ key = item.get('masterSku', "")
qty = item.get('quantity', 0)
price = item.get('actualPrice', 0)