From 65e46e1826143bb1b7183d2dbfb1cbddaad9d822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 12 Nov 2012 16:27:18 +0100 Subject: [PATCH] [TMP] Commented buggy addition of FP in trunk, to test the branch. bzr revid: tde@openerp.com-20121112152718-1srt8ej6dxvxoso4 --- addons/account/wizard/account_report_common.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/addons/account/wizard/account_report_common.py b/addons/account/wizard/account_report_common.py index eea0650b6ff..07e3a01e75d 100644 --- a/addons/account/wizard/account_report_common.py +++ b/addons/account/wizard/account_report_common.py @@ -119,11 +119,12 @@ class account_common_report(osv.osv_memory): def _get_fiscalyear(self, cr, uid, context=None): now = time.strftime('%Y-%m-%d') - company_id = None - ids = context.get('active_ids', []) - for wiz in self.browse(cr, uid, ids, context=context): - company_id = wiz.company_id - fiscalyears = self.pool.get('account.fiscalyear').search(cr, uid, [('date_start', '<', now), ('date_stop', '>', now), ('company_id', '=', company_id)], limit=1 ) + # company_id = None + # ids = context.get('active_ids', []) + # for wiz in self.browse(cr, uid, ids, context=context): + # company_id = wiz.company_id + # fiscalyears = self.pool.get('account.fiscalyear').search(cr, uid, [('date_start', '<', now), ('date_stop', '>', now), ('company_id', '=', company_id)], limit=1 ) + fiscalyears = self.pool.get('account.fiscalyear').search(cr, uid, [('date_start', '<', now), ('date_stop', '>', now)], limit=1 ) return fiscalyears and fiscalyears[0] or False def _get_all_journal(self, cr, uid, context=None):