From d05019801a47a22998c1b1ce8ef0cb461d13052c Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Sun, 27 Oct 2013 19:29:35 +0100 Subject: [PATCH] [imp] removing unused methods --- .../report/common_report_header.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/account_financial_report_horizontal/report/common_report_header.py b/account_financial_report_horizontal/report/common_report_header.py index 2fda3a7b..bf7e1cb2 100644 --- a/account_financial_report_horizontal/report/common_report_header.py +++ b/account_financial_report_horizontal/report/common_report_header.py @@ -67,25 +67,6 @@ class common_report_header(object): return _('Periods') return _('No Filter') - def _sum_debit_period(self, period_id, journal_id=None): - journals = journal_id or self.journal_ids - if not journals: - return 0.0 - self.cr.execute('SELECT SUM(debit) FROM account_move_line l ' - 'WHERE period_id=%s AND journal_id IN %s '+ self.query_get_clause +'', - (period_id, tuple(journals))) - - return self.cr.fetchone()[0] or 0.0 - - def _sum_credit_period(self, period_id, journal_id=None): - journals = journal_id or self.journal_ids - if not journals: - return 0.0 - self.cr.execute('SELECT SUM(credit) FROM account_move_line l ' - 'WHERE period_id=%s AND journal_id IN %s ' + self.query_get_clause +' ', - (period_id, tuple(journals))) - return self.cr.fetchone()[0] or 0.0 - def _get_fiscalyear(self, data): 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