From 8c326c5cc57bc9673d11926667f0deb41256bcff Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 11 Apr 2017 13:11:12 +0200 Subject: [PATCH] [FIX] stock: reordering rules of archived products When the scheduler is run, the reordering rules of archived products are selected. opw-728316 --- addons/stock/procurement.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/stock/procurement.py b/addons/stock/procurement.py index fdbebe53eff..d2a9950c5c5 100644 --- a/addons/stock/procurement.py +++ b/addons/stock/procurement.py @@ -459,6 +459,8 @@ class procurement_order(osv.osv): product_obj = self.pool.get('product.product') dom = company_id and [('company_id', '=', company_id)] or [] + # DO NOT FORWARDPORT + dom += [('product_id.active', '=', True)] orderpoint_ids = orderpoint_obj.search(cr, uid, dom, order="location_id", context=context) prev_ids = [] tot_procs = []