diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-11-16 19:30:20 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-11-16 19:30:20 +0100 |
| commit | 6faad524cf5e4db02855cb213277c40aee14c42a (patch) | |
| tree | 383c984dc1461a03481baa9fbdce8c156ca97e2e /addons/account/models/account_move.py | |
| parent | 3657dc77c2ddb4275f07d1271b93e7f25e09913a (diff) | |
| parent | bc744a1da46efda6f1eb5c341f2fa5df30c9c7ad (diff) | |
[MERGE] forward port branch 12.0 up to bc744a1da46
Diffstat (limited to 'addons/account/models/account_move.py')
| -rw-r--r-- | addons/account/models/account_move.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index dc4c37f54db..9e94cc389e8 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -167,8 +167,8 @@ class AccountMove(models.Model): return line_ids.filtered(lambda x: tax in x.tax_ids) def _get_tax_account(tax, amount): - if tax.tax_exigibility == 'on_payment' and tax.cash_basis_account: - return tax.cash_basis_account + if tax.tax_exigibility == 'on_payment' and tax.cash_basis_account_id: + return tax.cash_basis_account_id if tax.type_tax_use == 'purchase': return tax.refund_account_id if amount < 0 else tax.account_id return tax.refund_account_id if amount >= 0 else tax.account_id |
