From cf02783fb1d2ab5401a84b63a9ff081474d39dd4 Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Sun, 27 Oct 2013 19:35:18 +0100 Subject: [PATCH] [imp] unused method get_currency --- .../report/account_balance_sheet.py | 1 - .../report/account_profit_loss.py | 1 - .../report/common_report_header.py | 7 ------- 3 files changed, 9 deletions(-) diff --git a/account_financial_report_horizontal/report/account_balance_sheet.py b/account_financial_report_horizontal/report/account_balance_sheet.py index 8a433367..7b6c9554 100644 --- a/account_financial_report_horizontal/report/account_balance_sheet.py +++ b/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, diff --git a/account_financial_report_horizontal/report/account_profit_loss.py b/account_financial_report_horizontal/report/account_profit_loss.py index 71103291..1eabceff 100644 --- a/account_financial_report_horizontal/report/account_profit_loss.py +++ b/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, diff --git a/account_financial_report_horizontal/report/common_report_header.py b/account_financial_report_horizontal/report/common_report_header.py index 1347eb06..f1e5d9a3 100644 --- a/account_financial_report_horizontal/report/common_report_header.py +++ b/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: