Bharat Devnani (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-842744-bde into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #842744 in OpenERP Addons: "[6.0, trunk] account.common.report wizard : 
End Period and special period"
  https://bugs.launchpad.net/openobject-addons/+bug/842744

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-842744-bde/+merge/76149

Hello Sir, 

I have applied the patch of Guewen Baconnier for account_common_report. 

Thanks & Regards,
Devnani Bharat R.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-842744-bde/+merge/76149
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-842744-bde.
=== modified file 'account/wizard/account_report_common.py'
--- account/wizard/account_report_common.py	2011-05-06 08:35:05 +0000
+++ account/wizard/account_report_common.py	2011-09-20 05:30:29 +0000
@@ -68,6 +68,7 @@
                                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 @@
                                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()]

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to