From a2f13f4b33e8142638a37ab7de3a7132adf8a3a9 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 19 Jun 2017 10:37:05 +0200 Subject: [PATCH] account_financial_report_qweb: all reconcile accounts allowed in Open Items report --- account_financial_report_qweb/report/open_items.py | 4 ++-- account_financial_report_qweb/wizard/open_items_wizard.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/account_financial_report_qweb/report/open_items.py b/account_financial_report_qweb/report/open_items.py index 649c66fb..5265fd00 100644 --- a/account_financial_report_qweb/report/open_items.py +++ b/account_financial_report_qweb/report/open_items.py @@ -201,8 +201,8 @@ WITH query_inject_account += """ WHERE a.company_id = %s - AND a.internal_type IN ('payable', 'receivable') - """ + AND a.reconcile IS true + """ if self.filter_account_ids: query_inject_account += """ AND diff --git a/account_financial_report_qweb/wizard/open_items_wizard.py b/account_financial_report_qweb/wizard/open_items_wizard.py index 8a061a97..9b45adc5 100644 --- a/account_financial_report_qweb/wizard/open_items_wizard.py +++ b/account_financial_report_qweb/wizard/open_items_wizard.py @@ -29,6 +29,7 @@ class OpenItemsReportWizard(models.TransientModel): account_ids = fields.Many2many( comodel_name='account.account', string='Filter accounts', + domain=[('reconcile', '=', True)], ) hide_account_balance_at_0 = fields.Boolean( string='Hide account ending balance at 0',