Skip to content

Commit

Permalink
Merge 20cc37f into a26f7ef
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarlosmontoya committed Jun 27, 2017
2 parents a26f7ef + 20cc37f commit a699cf7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connector_prestashop/models/product_product/importer.py
Expand Up @@ -244,7 +244,8 @@ def specific_price(self, record):
product_template = self.binder_for(
'prestashop.product.template').to_odoo(
record['id_product'], unwrap=True)
tax = product.product_tmpl_id.taxes_id[:1] or self._get_tax_ids(record)
tax = product.product_tmpl_id.taxes_id[:1] or self._get_tax_ids(
record)[:1]
factor_tax = tax.price_include and (1 + tax.amount) or 1.0
impact = float(record['price'] or '0.0') * factor_tax
cost_price = float(record['wholesale_price'] or '0.0')
Expand Down

0 comments on commit a699cf7

Please sign in to comment.