diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-09-13 17:47:34 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-09-13 17:47:34 +0200 |
| commit | 5b69f1a333b0ae0b4d12f6281e87cd824daa0c8b (patch) | |
| tree | d76ec74350a98fab8fa618442f2dd6ab3fd949bc /addons/account_tax_python/models | |
| parent | c8b5c013401b9eccabe80be7859dcaeccb387e5b (diff) | |
[FIX] account_tax_python: correctly forward-port 7eb7e9fd6e72764f28df19ab8803e1cceff38b4d
Diffstat (limited to 'addons/account_tax_python/models')
| -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 a8f3d77752d..17821f22052 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} |
