Skip to content

Commit

Permalink
Apply fiscal position
Browse files Browse the repository at this point in the history
  • Loading branch information
guewen committed Aug 15, 2017
1 parent 9907c8b commit dae2d36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions connector_magento/models/sale_order/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,12 @@ def _link_parent_orders(self, binding):
parent_binding.write({'canceled_in_backend': True})
current_binding = parent_binding

def _create(self, data):
binding = super(SaleOrderImporter, self)._create(data)
if binding.fiscal_position_id:
binding.odoo_id._compute_tax_id()
return binding

def _after_import(self, binding):
self._link_parent_orders(binding)

Expand Down

0 comments on commit dae2d36

Please sign in to comment.