Skip to content
Snippets Groups Projects
Commit 3d2a7a0d authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[MERGE] forward port branch 10.0 up to 5b69f1a3

parents c8194a76 5b69f1a3
Branches
Tags
No related merge requests found
......@@ -37,7 +37,7 @@ class AccountTaxPython(models.Model):
@api.multi
def compute_all(self, price_unit, currency=None, quantity=1.0, product=None, partner=None):
taxes = self.env['account.tax']
taxes = self.filtered(lambda r: r.amount_type != 'code')
company = self.env.user.company_id
for tax in self.filtered(lambda r: r.amount_type == 'code'):
localdict = {'price_unit': price_unit, 'quantity': quantity, 'product': product, 'partner': partner, 'company': company}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment