From ad584540d4a91c1e8b97680e1e84536d0b8a6d91 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 12 Sep 2018 11:05:31 +0200 Subject: [PATCH] [FIX] account: tax account Use the cash basis account for cash basis taxes. Follow-up of 1b475753723c81f46414357dfd449a47fe342dff opw-1858492 --- addons/account/models/account_move.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index ca1dfbd98a2..b3b026dc66f 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1315,6 +1315,7 @@ class AccountMoveLine(models.Model): temp['amount_currency'] = bank.company_id.currency_id.with_context(ctx).compute(tax_vals['amount'], bank.currency_id, round=True) if vals.get('tax_exigible'): temp['tax_exigible'] = True + temp['account_id'] = tax.cash_basis_account.id or account_id tax_lines_vals.append(temp) #Toggle the 'tax_exigible' field to False in case it is not yet given and the tax in 'tax_line_id' or one of