From 4b614305d4066e7b97045a1641aed925ae709b17 Mon Sep 17 00:00:00 2001 From: Benoit Guillot Date: Wed, 29 Aug 2012 10:40:32 +0200 Subject: [PATCH] [IMP] add context on the call of the method refund bzr revid: benoit.guillot@akretion.com.br-20120829084032-9ow83wx3kcmrvep7 --- addons/point_of_sale/wizard/pos_return.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/wizard/pos_return.py b/addons/point_of_sale/wizard/pos_return.py index 0e5d4e1fbb5..c56fe5fd572 100644 --- a/addons/point_of_sale/wizard/pos_return.py +++ b/addons/point_of_sale/wizard/pos_return.py @@ -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',