[IMP] account_financial_report: Add tax_line_id field to taxes column in general_ledger

TT38721
pull/917/head
Víctor Martínez 2022-09-15 12:01:52 +02:00
parent ff43638c46
commit 4bd43fcbd7
3 changed files with 8 additions and 0 deletions

View File

@ -305,6 +305,7 @@ class GeneralLedgerReport(models.AbstractModel):
"ref": "" if not move_line["ref"] else move_line["ref"],
"name": "" if not move_line["name"] else move_line["name"],
"tax_ids": move_line["tax_ids"],
"tax_line_id": move_line["tax_line_id"],
"debit": move_line["debit"],
"credit": move_line["credit"],
"balance": move_line["balance"],
@ -462,6 +463,7 @@ class GeneralLedgerReport(models.AbstractModel):
"currency_id",
"full_reconcile_id",
"tax_ids",
"tax_line_id",
"analytic_tag_ids",
"amount_currency",
"ref",
@ -716,6 +718,7 @@ class GeneralLedgerReport(models.AbstractModel):
"rec_id": 0,
"entry_id": False,
"tax_ids": [],
"tax_line_id": False,
"full_reconcile_id": False,
"id": False,
"tag_ids": False,

View File

@ -197,6 +197,8 @@ class GeneralLedgerXslx(models.AbstractModel):
tags = ""
for tax_id in line["tax_ids"]:
taxes_description += taxes_data[tax_id]["tax_name"] + " "
if line["tax_line_id"]:
taxes_description += line["tax_line_id"][1]
for tag_id in line["tag_ids"]:
tags += tags_data[tag_id]["name"] + " "
line.update(

View File

@ -445,6 +445,9 @@
/>
</t>
</t>
<t t-if="line['tax_line_id']">
<span t-esc="line['tax_line_id'][1]" />
</t>
</div>
<!--## partner-->
<div class="act_as_cell left">