diff options
Diffstat (limited to 'fixco_custom')
| -rwxr-xr-x | fixco_custom/models/detail_order.py | 4 |
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) |
