[FIX] stock: reordering rules of archived products

When the scheduler is run, the reordering rules of archived products are
selected.

opw-728316
This commit is contained in:
Nicolas Martinelli
2017-04-11 13:19:44 +02:00
parent 6108778497
commit 8c326c5cc5
+2
View File
@@ -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 = []