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)