[FIX] account: grouping tax lines on invoices when no tax account is set on them. Fixes #12561
This commit is contained in:
@@ -567,7 +567,7 @@ class AccountInvoice(models.Model):
|
||||
if not val.get('account_analytic_id') and line.account_analytic_id and val['account_id'] == line.account_id.id:
|
||||
val['account_analytic_id'] = line.account_analytic_id.id
|
||||
|
||||
key = tax['id']
|
||||
key = str(tax['id']) + '-' + str(val['account_id'])
|
||||
if key not in tax_grouped:
|
||||
tax_grouped[key] = val
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user