diff --git a/addons/sale_mrp/test/sale_mrp.yml b/addons/sale_mrp/test/sale_mrp.yml index 43c432f534e..41015c47e58 100644 --- a/addons/sale_mrp/test/sale_mrp.yml +++ b/addons/sale_mrp/test/sale_mrp.yml @@ -106,7 +106,7 @@ !python {model: procurement.order}: | sale_order_obj = self.pool.get('sale.order') so = sale_order_obj.browse(cr, uid, ref("sale_order_so0")) - proc_ids = self.search(cr, uid, [('origin','=',so.name) and ('state','=','running')]) + proc_ids = self.search(cr, uid, [('origin','like',so.name), ('state','=','running')]) assert len(proc_ids) == 2, 'Not both procurements are in the running state!' - I verify that a manufacturing order has been generated, and that its name and reference are correct