Browse Source

[12.0][FIX] - Hide ending balance if general ledger is filtered by partner

pull/617/head
sbejaoui 5 years ago
parent
commit
76e2586173
  1. 3
      account_financial_report/report/general_ledger_xlsx.py
  2. 2
      account_financial_report/report/templates/general_ledger.xml

3
account_financial_report/report/general_ledger_xlsx.py

@ -154,7 +154,8 @@ class GeneralLedgerXslx(models.AbstractModel):
self.row_pos += 1
# Display ending balance line for account
self.write_ending_balance(account)
if not report.filter_partner_ids:
self.write_ending_balance(account)
# 2 lines break
self.row_pos += 2

2
account_financial_report/report/templates/general_ledger.xml

@ -67,7 +67,7 @@
</t>
<!-- Display account footer -->
<t t-call="account_financial_report.report_general_ledger_ending_cumul">
<t t-if="not o.filter_partner_ids" t-call="account_financial_report.report_general_ledger_ending_cumul">
<t t-set="account_or_partner_object" t-value="account"/>
<t t-set="type" t-value='"account_type"'/>
</t>

Loading…
Cancel
Save