From 748abf17609d955dd2c19e8364364a2b47f9fad9 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Tue, 20 Jul 2010 10:29:17 +0530 Subject: [PATCH] [IMP] common report header bzr revid: mra@mra-laptop-20100720045917-1rs4rllz8ttraia9 --- addons/account/report/common_report_header.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/addons/account/report/common_report_header.py b/addons/account/report/common_report_header.py index 6dd4aab0f5e..fb339ca9a30 100644 --- a/addons/account/report/common_report_header.py +++ b/addons/account/report/common_report_header.py @@ -94,9 +94,7 @@ class common_report_header(object): return 'Date' elif data['form']['filter'] == 'filter_period': return 'Periods' - else: - return 'No Filter' - return '' + return 'No Filter' def _sum_debit_period(self, period_id, journal_id=None): journals = journal_id or self.journal_ids @@ -129,7 +127,7 @@ class common_report_header(object): return '' def _get_journal(self, data): - if data.get('form', False) and data['form'].get('journal_ids', False): + if data.get('form', False) and data['form'].get('journal_ids', False): self.cr.execute('select code from account_journal where id IN %s',(tuple(data['form']['journal_ids']),)) codes = [x for x, in self.cr.fetchall()] return codes or ''