[IMP] common report header
bzr revid: mra@mra-laptop-20100720045917-1rs4rllz8ttraia9
This commit is contained in:
parent
20ca7ddb8d
commit
748abf1760
|
@ -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 ''
|
||||
|
|
Loading…
Reference in New Issue