From 876264154344de93a03a181161336ae2a41b9792 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier <> Date: Tue, 20 Sep 2011 10:56:46 +0530 Subject: [PATCH] [FIX] account : [6.0, trunk] account.common.report wizard : End Period and special period lp bug: https://launchpad.net/bugs/842744 fixed bzr revid: bde@tinyerp.com-20110920052646-97jub0nky5f7yscf --- addons/account/wizard/account_report_common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/wizard/account_report_common.py b/addons/account/wizard/account_report_common.py index 7aa4c465e0d..0d0b69ce132 100644 --- a/addons/account/wizard/account_report_common.py +++ b/addons/account/wizard/account_report_common.py @@ -68,6 +68,7 @@ class account_common_report(osv.osv_memory): FROM account_period p LEFT JOIN account_fiscalyear f ON (p.fiscalyear_id = f.id) WHERE f.id = %s + AND p.special = false ORDER BY p.date_start ASC, p.special ASC LIMIT 1) AS period_start UNION @@ -76,6 +77,7 @@ class account_common_report(osv.osv_memory): LEFT JOIN account_fiscalyear f ON (p.fiscalyear_id = f.id) WHERE f.id = %s AND p.date_start < NOW() + AND p.special = false ORDER BY p.date_stop DESC LIMIT 1) AS period_stop''', (fiscalyear_id, fiscalyear_id)) periods = [i[0] for i in cr.fetchall()]