From 890174b976fffb5887aa98009ec80ded8549e037 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 12 Mar 2015 14:36:23 +0100 Subject: [PATCH] [FIX] procurement_jit_stock: context are frozen. --- addons/procurement_jit_stock/procurement_jit_stock.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/procurement_jit_stock/procurement_jit_stock.py b/addons/procurement_jit_stock/procurement_jit_stock.py index 576ca54f45c..61fac0efd78 100644 --- a/addons/procurement_jit_stock/procurement_jit_stock.py +++ b/addons/procurement_jit_stock/procurement_jit_stock.py @@ -26,8 +26,7 @@ class procurement_order(osv.osv): _inherit = "procurement.order" def run(self, cr, uid, ids, context=None): - context = context or {} - context['procurement_autorun_defer'] = True + context = dict(context or {}, procurement_autorun_defer=True) res = super(procurement_order, self).run(cr, uid, ids, context=context) procurement_ids = self.search(cr, uid, [('move_dest_id.procurement_id', 'in', ids)], order='id', context=context)