[FIX] account : accounting report filter: period start and end are sometimes swapped

lp bug: https://launchpad.net/bugs/870099 fixed

bzr revid: bde@tinyerp.com-20111018133315-attph5jtw8adh4ww
This commit is contained in:
Stéphane Bidoul 2011-10-18 19:03:15 +05:30 committed by Bharat (OpenERP)
parent ccdcd1e55f
commit 6fc2bd674f
1 changed files with 1 additions and 1 deletions

View 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)