diff options
| author | Josse Colpaert <jco@openerp.com> | 2013-03-22 12:32:53 +0100 |
|---|---|---|
| committer | Josse Colpaert <jco@openerp.com> | 2013-03-22 12:32:53 +0100 |
| commit | 772b7d30358ce3f4e8a48ecddbc69e5e6ba5ac37 (patch) | |
| tree | 1e60666f291cc91c52fec3a22205f75118ba2e0a | |
| parent | 26e769eb8836d8d1b7fe915a0a104fc26354bad3 (diff) | |
[FIX] Use created date instead of account move line date for manual reconcil
bzr revid: jco@openerp.com-20130322113253-tkmb1bygozymsixl
| -rw-r--r-- | addons/account/account_move_line.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 4aa7da9428e..941578d6334 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -742,7 +742,7 @@ class account_move_line(osv.osv): def list_partners_to_reconcile(self, cr, uid, context=None): cr.execute( """SELECT partner_id FROM ( - SELECT l.partner_id, p.last_reconciliation_date, SUM(l.debit) AS debit, SUM(l.credit) AS credit, MAX(l.date) AS max_reconcil_date + SELECT l.partner_id, p.last_reconciliation_date, SUM(l.debit) AS debit, SUM(l.credit) AS credit, MAX(l.create_date) AS max_reconcil_date FROM account_move_line l RIGHT JOIN account_account a ON (a.id = l.account_id) RIGHT JOIN res_partner p ON (l.partner_id = p.id) |
