[FIX] account: tax account
Use the cash basis account for cash basis taxes.
Follow-up of 1b47575372
opw-1858492
This commit is contained in:
committed by
Nicolas Martinelli
parent
daa6cea439
commit
ad584540d4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user