minor fix

This commit is contained in:
wilson gomez 2021-07-03 08:36:54 -05:00
parent e4b0bd810f
commit a083aae6f7
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ class Shopify(SaleWebChannel):
'taxes': [('add', product.customer_taxes_used)],
'description': description,
})
if self.freight_product:
if self.freight_product and len(sale_['shipping_lines']) > 0:
product = self.freight_product
shipping_amount = sale_['shipping_lines'][0]['price']
create_lines.append({