From c349e9a8f8df58ed74c3487891a47c2ade3dfe38 Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Tue, 13 Dec 2016 04:46:47 -0600 Subject: [PATCH] [FIX] stock: Add missing context to search Closes #13636 --- addons/stock/procurement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/procurement.py b/addons/stock/procurement.py index 7b067ed7e3b..61737fd80c3 100644 --- a/addons/stock/procurement.py +++ b/addons/stock/procurement.py @@ -342,7 +342,7 @@ class procurement_order(osv.osv): procurement_obj = self.pool.get('procurement.order') dom = company_id and [('company_id', '=', company_id)] or [] - orderpoint_ids = orderpoint_obj.search(cr, uid, dom) + orderpoint_ids = orderpoint_obj.search(cr, uid, dom, context=context) prev_ids = [] while orderpoint_ids: ids = orderpoint_ids[:100]