summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/hr_expense/models/product_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_expense/models/product_template.py b/addons/hr_expense/models/product_template.py
index a9e81959b0d..d053a800313 100644
--- a/addons/hr_expense/models/product_template.py
+++ b/addons/hr_expense/models/product_template.py
@@ -15,7 +15,7 @@ class ProductTemplate(models.Model):
for vals in vals_list:
# When creating an expense product on the fly, you don't expect to
# have taxes on it
- if vals.get('can_be_expensed', False):
+ if vals.get('can_be_expensed', False) and not self.env.context.get('import_file'):
vals.update({'supplier_taxes_id': False})
return super(ProductTemplate, self).create(vals_list)