[6.1, 7.0, account] Aged partner balance off by one day wrt. reconciliations

Bug #1210524 reported by Stefan Rijnhart (Opener)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 3

Bug Description

account/report/account_aged_partner_balance.py does a lot of queries in the form of

    WHERE account_move_reconcile.create_date > %s

where the report start date (e.g. '2013-08-09') is substituted in the argument. Of course, create_date is not a field of type date but of datetime. A datetime argument like '2013-08-09' constitutes the *start* of the day, so that the expression is actually true for any time on that very day. The effect is that reconciliations of the start date of the report are ignored, and the amounts of the reconciled move lines will feature in the report.

Accountants checking the results of the reconcilations that they just made may be surprised (if not worried).

A solution could be to craft the query arguments in the form of '2013-08-09 23:59:59', so that reconciliations created on the report start date are taken into account.

Related branches

description: updated
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Stefan,

Thanks for the fix!
Our Core team will review your branch!

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.