From 92d465065b65f6db6ae437e5e8246c234c84af63 Mon Sep 17 00:00:00 2001 From: ced <> Date: Thu, 19 Apr 2007 11:50:34 +0000 Subject: [PATCH] ACCOUNT: force date for move lines create by the reconciliation bzr revid: ced-713a7f1277a7f4058b6cde1793ded43dd7b7eaea --- addons/account/invoice.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 530a04324a1..6f325604bd7 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -492,14 +492,16 @@ class account_invoice(osv.osv): 'debit': direction == 1 and pay_amount, 'credit': direction == -1 and pay_amount, 'account_id': src_account_id, - 'partner_id': invoice.partner_id.id + 'partner_id': invoice.partner_id.id, + 'date': time.strftime('%Y-%m-%d'), } l2 = { 'name':name, 'debit': direction == -1 and pay_amount, 'credit': direction == 1 and pay_amount, 'account_id': pay_account_id, - 'partner_id': invoice.partner_id.id + 'partner_id': invoice.partner_id.id, + 'date': time.strftime('%Y-%m-%d'), } lines = [(0, 0, l1), (0, 0, l2)] move = {'name': name, 'line_id': lines, 'journal_id': pay_journal_id}