[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:
parent
1e2e50acaf
commit
d1bbb01f22
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue