[FIX] account: create move lines with date provide in wizard (bug reported by Alexis Deméaulte)

bzr revid: christophe@tinyerp.com-20090625133442-4vum4hmcw1qd7xzv
This commit is contained in:
Christophe Simonis 2009-06-25 15:34:42 +02:00
parent c92cfc7659
commit e4328c611f
1 changed files with 2 additions and 0 deletions

View File

@ -862,6 +862,7 @@ class account_invoice(osv.osv):
'account_id': src_account_id,
'partner_id': invoice.partner_id.id,
'ref':invoice.number,
'date': date,
}
l2 = {
'debit': direction * pay_amount<0 and - direction * pay_amount,
@ -869,6 +870,7 @@ class account_invoice(osv.osv):
'account_id': pay_account_id,
'partner_id': invoice.partner_id.id,
'ref':invoice.number,
'date': date,
}
if not name: