From d1bbb01f22d8278d0866227d10d8c56d1817f3d1 Mon Sep 17 00:00:00 2001 From: qdp Date: Wed, 28 Jan 2009 19:33:27 +0100 Subject: [PATCH] [FIX] bugfixed the date of account_move that were wrongly filled when created from an invoice (because of fields.related on account_move_line) bzr revid: qdp@tinyerp.com-20090128183327-v0oj3lkbr21j6sl7 --- addons/account/invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index c4e83648c9a..bd2a8de5d6a 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -655,6 +655,7 @@ class account_invoice(osv.osv): 'date_maturity': x.get('date_maturity', False), 'partner_id':part, 'name':x['name'][:64], + 'date': date, 'debit':x['price']>0 and x['price'], 'credit':x['price']<0 and -x['price'], 'account_id':x['account_id'],