account_financial_report_qweb: all reconcile accounts allowed in Open Items report

pull/367/head
Alexis de Lattre 2017-06-19 10:37:05 +02:00 committed by Jordi Ballester
parent 8ccc5d57ee
commit a2f13f4b33
2 changed files with 3 additions and 2 deletions

View File

@ -201,8 +201,8 @@ WITH
query_inject_account += """ query_inject_account += """
WHERE WHERE
a.company_id = %s a.company_id = %s
AND a.internal_type IN ('payable', 'receivable') AND a.reconcile IS true
""" """
if self.filter_account_ids: if self.filter_account_ids:
query_inject_account += """ query_inject_account += """
AND AND

View File

@ -29,6 +29,7 @@ class OpenItemsReportWizard(models.TransientModel):
account_ids = fields.Many2many( account_ids = fields.Many2many(
comodel_name='account.account', comodel_name='account.account',
string='Filter accounts', string='Filter accounts',
domain=[('reconcile', '=', True)],
) )
hide_account_balance_at_0 = fields.Boolean( hide_account_balance_at_0 = fields.Boolean(
string='Hide account ending balance at 0', string='Hide account ending balance at 0',