From 13d0934f34c2b4450f14bb32f4b97dd3b9c2022a Mon Sep 17 00:00:00 2001 From: vrenaville Date: Fri, 28 Nov 2014 14:01:50 +0100 Subject: [PATCH] [FIX] account: chart of account opening period selection If a special period is present, it must be selected fist Fixes #3946 --- addons/account/wizard/account_chart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/wizard/account_chart.py b/addons/account/wizard/account_chart.py index 32b83a0a670..62f99c3c854 100644 --- a/addons/account/wizard/account_chart.py +++ b/addons/account/wizard/account_chart.py @@ -51,7 +51,7 @@ class account_chart(osv.osv_memory): FROM account_period p LEFT JOIN account_fiscalyear f ON (p.fiscalyear_id = f.id) WHERE f.id = %s - ORDER BY p.date_start ASC + ORDER BY p.date_start ASC, p.special DESC LIMIT 1) AS period_start UNION ALL SELECT * FROM (SELECT p.id