[FIX] account : accounting report filter: period start and end are sometimes swapped
authorStéphane Bidoul <>
Tue, 18 Oct 2011 13:33:15 +0000 (19:03 +0530)
committerBharat (OpenERP) <bde@tinyerp.com>
Tue, 18 Oct 2011 13:33:15 +0000 (19:03 +0530)
lp bug: https://launchpad.net/bugs/870099 fixed

bzr revid: bde@tinyerp.com-20111018133315-attph5jtw8adh4ww

addons/account/wizard/account_report_common.py

index 48130b0..8ae425e 100644 (file)
@@ -71,7 +71,7 @@ class account_common_report(osv.osv_memory):
                                AND p.special = false
                                ORDER BY p.date_start ASC, p.special ASC
                                LIMIT 1) AS period_start
-                UNION
+                UNION ALL
                 SELECT * FROM (SELECT p.id
                                FROM account_period p
                                LEFT JOIN account_fiscalyear f ON (p.fiscalyear_id = f.id)