[FIX] Fixed write with id instead of ids.

bzr revid: tde@openerp.com-20120403205706-xwy5uuzzzdn1hcl7
This commit is contained in:
Thibault Delavallée 2012-04-03 22:57:06 +02:00
parent 31a4b68d38
commit 931edc0075
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class sale_advance_payment_inv(osv.osv_memory):
for inv in sale.invoice_ids:
ids_inv.append(inv.id)
ids_inv.append(inv_id)
obj_sale.write(cr, uid, sale.id, {'invoice_ids': [(6, 0, ids_inv)]})
obj_sale.write(cr, uid, [sale.id], {'invoice_ids': [(6, 0, ids_inv)]})
list_inv.append(inv_id)
#
# If invoice on picking: add the cost on the SO