[IMP] proc_ids search domain was wrong in yml

bzr revid: jco@openerp.com-20130916100724-92vgj02c3axdg1zw
This commit is contained in:
Josse Colpaert
2013-09-16 12:07:24 +02:00
parent 17258b6a9a
commit 089cb7c856
+1 -1
View File
@@ -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