diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-09-13 17:48:37 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-09-13 17:48:37 +0200 |
| commit | 3d2a7a0d127f101039b51f60531047e8a5792688 (patch) | |
| tree | 4b4e6b89e6aa5535fd0a2a76ef3a5db41012512a /addons/account_tax_python | |
| parent | c8194a7647ce7ae2d83ac94aba3e8f4748b5411b (diff) | |
| parent | 5b69f1a333b0ae0b4d12f6281e87cd824daa0c8b (diff) | |
[MERGE] forward port branch 10.0 up to 5b69f1a333b
Diffstat (limited to 'addons/account_tax_python')
| -rw-r--r-- | addons/account_tax_python/models/account_tax.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account_tax_python/models/account_tax.py b/addons/account_tax_python/models/account_tax.py index 26c1a4bddca..8b438b82859 100644 --- a/addons/account_tax_python/models/account_tax.py +++ b/addons/account_tax_python/models/account_tax.py @@ -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} |
