[FIX] procurement_jit_stock: context are frozen.

This commit is contained in:
Christophe Simonis 2015-03-12 14:36:23 +01:00
parent 43b3b28708
commit 890174b976
1 changed files with 1 additions and 2 deletions

View File

@ -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)