Browse Source

[imp] unused method get_currency

pull/7/merge
Lorenzo Battistini 11 years ago
parent
commit
b4fda694a0
  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

@ -43,7 +43,6 @@ class report_balancesheet_horizontal(report_sxw.rml_parse, common_report_header)
'time': time,
'get_lines': self.get_lines,
'get_lines_another': self.get_lines_another,
'get_currency': self._get_currency,
'sum_dr': self.sum_dr,
'sum_cr': self.sum_cr,
'get_data':self.get_data,

1
account_financial_report_horizontal/report/account_profit_loss.py

@ -40,7 +40,6 @@ class report_pl_account_horizontal(report_sxw.rml_parse, common_report_header):
'time': time,
'get_lines': self.get_lines,
'get_lines_another': self.get_lines_another,
'get_currency': self._get_currency,
'get_data': self.get_data,
'sum_dr': self.sum_dr,
'sum_cr': self.sum_cr,

7
account_financial_report_horizontal/report/common_report_header.py

@ -71,10 +71,3 @@ class common_report_header(object):
if data.get('form', False) and data['form'].get('fiscalyear_id', False):
return pooler.get_pool(self.cr.dbname).get('account.fiscalyear').browse(self.cr, self.uid, data['form']['fiscalyear_id'][0]).name
return ''
def _get_currency(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']).company_id.currency_id.symbol
return ''
#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
Loading…
Cancel
Save