ACCOUNT: force date for move lines create by the reconciliation
bzr revid: ced-713a7f1277a7f4058b6cde1793ded43dd7b7eaea
This commit is contained in:
parent
0602ce785c
commit
92d465065b
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue