[FIX] account_financial_report: Hide ending balance if general ledger is filtered by partner

pull/657/head
sbejaoui 2019-09-25 11:42:02 +02:00 committed by Pedro M. Baeza
parent 6ddb925bc8
commit 44eb4db3cb
3 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ {
'name': 'Account Financial Reports', 'name': 'Account Financial Reports',
'version': '11.0.2.5.2', 'version': '11.0.2.6.0',
'category': 'Reporting', 'category': 'Reporting',
'summary': 'OCA Financial Reports', 'summary': 'OCA Financial Reports',
'author': 'Camptocamp SA,' 'author': 'Camptocamp SA,'

View File

@ -154,7 +154,8 @@ class GeneralLedgerXslx(models.AbstractModel):
self.row_pos += 1 self.row_pos += 1
# Display ending balance line for account # 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 # 2 lines break
self.row_pos += 2 self.row_pos += 2

View File

@ -67,7 +67,7 @@
</t> </t>
<!-- Display account footer --> <!-- 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="account_or_partner_object" t-value="account"/>
<t t-set="type" t-value='"account_type"'/> <t t-set="type" t-value='"account_type"'/>
</t> </t>