Browse Source

[IMP] removing unused methods

pull/7/merge
Lorenzo Battistini 11 years ago
parent
commit
35506b455a
  1. 2
      account_financial_report_horizontal/report/account_balance_sheet.py
  2. 1
      account_financial_report_horizontal/report/account_profit_loss.py
  3. 5
      account_financial_report_horizontal/report/common_report_header.py

2
account_financial_report_horizontal/report/account_balance_sheet.py

@ -43,7 +43,6 @@ class report_balancesheet_horizontal(report_sxw.rml_parse, common_report_header)
'time': time, 'time': time,
'get_lines': self.get_lines, 'get_lines': self.get_lines,
'get_lines_another': self.get_lines_another, 'get_lines_another': self.get_lines_another,
'get_company': self._get_company,
'get_currency': self._get_currency, 'get_currency': self._get_currency,
'sum_dr': self.sum_dr, 'sum_dr': self.sum_dr,
'sum_cr': self.sum_cr, 'sum_cr': self.sum_cr,
@ -58,7 +57,6 @@ class report_balancesheet_horizontal(report_sxw.rml_parse, common_report_header)
'get_journal': self._get_journal, '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_company':self._get_company,
'get_target_move': self._get_target_move, 'get_target_move': self._get_target_move,
}) })
self.context = context self.context = context

1
account_financial_report_horizontal/report/account_profit_loss.py

@ -54,7 +54,6 @@ class report_pl_account_horizontal(report_sxw.rml_parse, common_report_header):
'get_journal': self._get_journal, '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_company':self._get_company,
'get_target_move': self._get_target_move, 'get_target_move': self._get_target_move,
'get_trans':self._get_trans 'get_trans':self._get_trans
}) })

5
account_financial_report_horizontal/report/common_report_header.py

@ -72,11 +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_company(self, data):
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'][0]).company_id.name
return ''
def _get_journal(self, data): def _get_journal(self, data):
codes = [] codes = []
if data.get('form', False) and data['form'].get('journal_ids', False): if data.get('form', False) and data['form'].get('journal_ids', False):

Loading…
Cancel
Save