[IMP] account_financial_report: Add tax_line_id field to taxes column in general_ledger
TT38721pull/915/head
parent
a18bca2b0f
commit
8314952941
|
@ -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,
|
||||
|
|
|
@ -193,6 +193,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(
|
||||
|
|
|
@ -438,6 +438,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">
|
||||
|
|
Loading…
Reference in New Issue