Skip to content

Commit

Permalink
[FIX] connector_magento: sale order line price compatibility with M1
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredkipe committed Oct 2, 2020
1 parent 939ef02 commit 4a08c45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion connector_magento/models/sale_order/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,4 +794,7 @@ def price(self, record):
total = base_row_total_incl_tax
else:
total = base_row_total
return {'price_unit': (total + discount_amount) / qty_ordered}

if self.collection.version == '2.0':
total += discount_amount
return {'price_unit': total / qty_ordered}

0 comments on commit 4a08c45

Please sign in to comment.