[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
This commit is contained in:
qdp 2009-01-28 19:33:27 +01:00
parent 1e2e50acaf
commit d1bbb01f22
1 changed files with 1 additions and 0 deletions

View File

@ -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'],