Browse Source

[imp] unused method get_journal

pull/605/head
Lorenzo Battistini 11 years ago
committed by mreficent
parent
commit
7e98ccad21
  1. 1
      account_financial_report_horizontal/report/account_balance_sheet.py
  2. 1
      account_financial_report_horizontal/report/account_profit_loss.py
  3. 7
      account_financial_report_horizontal/report/common_report_header.py

1
account_financial_report_horizontal/report/account_balance_sheet.py

@ -54,7 +54,6 @@ class report_balancesheet_horizontal(report_sxw.rml_parse, common_report_header)
'get_end_period': self.get_end_period, 'get_end_period': self.get_end_period,
'get_sortby': self._get_sortby, 'get_sortby': self._get_sortby,
'get_filter': self._get_filter, 'get_filter': self._get_filter,
'get_journal': self._get_journal,
'get_start_date':self._get_start_date, 'get_start_date':self._get_start_date,
'get_end_date':self._get_end_date, 'get_end_date':self._get_end_date,
'get_target_move': self._get_target_move, 'get_target_move': self._get_target_move,

1
account_financial_report_horizontal/report/account_profit_loss.py

@ -51,7 +51,6 @@ class report_pl_account_horizontal(report_sxw.rml_parse, common_report_header):
'get_end_period': self.get_end_period, 'get_end_period': self.get_end_period,
'get_sortby': self._get_sortby, 'get_sortby': self._get_sortby,
'get_filter': self._get_filter, 'get_filter': self._get_filter,
'get_journal': self._get_journal,
'get_start_date':self._get_start_date, 'get_start_date':self._get_start_date,
'get_end_date':self._get_end_date, 'get_end_date':self._get_end_date,
'get_target_move': self._get_target_move, 'get_target_move': self._get_target_move,

7
account_financial_report_horizontal/report/common_report_header.py

@ -72,13 +72,6 @@ class common_report_header(object):
return pooler.get_pool(self.cr.dbname).get('account.fiscalyear').browse(self.cr, self.uid, data['form']['fiscalyear_id'][0]).name return pooler.get_pool(self.cr.dbname).get('account.fiscalyear').browse(self.cr, self.uid, data['form']['fiscalyear_id'][0]).name
return '' return ''
def _get_journal(self, data):
codes = []
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
def _get_currency(self, data): def _get_currency(self, data):
if data.get('form', False) and data['form'].get('chart_account_id', False): if data.get('form', False) and data['form'].get('chart_account_id', False):
return pooler.get_pool(self.cr.dbname).get('account.account').browse(self.cr, self.uid, data['form']['chart_account_id']).company_id.currency_id.symbol return pooler.get_pool(self.cr.dbname).get('account.account').browse(self.cr, self.uid, data['form']['chart_account_id']).company_id.currency_id.symbol

Loading…
Cancel
Save