[IMP] add context on the call of the method refund

bzr revid: benoit.guillot@akretion.com.br-20120829084032-9ow83wx3kcmrvep7
This commit is contained in:
Benoit Guillot 2012-08-29 10:40:32 +02:00
parent 8f1a02e331
commit 4b614305d4
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ class add_product(osv.osv_memory):
location_id=res and res[0] or None
if order_id.invoice_id:
invoice_obj.refund(cr, uid, [order_id.invoice_id.id], time.strftime('%Y-%m-%d'), False, order_id.name)
invoice_obj.refund(cr, uid, [order_id.invoice_id.id], time.strftime('%Y-%m-%d'), False, order_id.name, context=context)
new_picking=picking_obj.create(cr, uid, {
'name':'%s (return)' %order_id.name,
'move_lines':[], 'state':'draft',