parent
1a4bad6acc
commit
51b5555ca6
|
@ -35,7 +35,6 @@
|
|||
product_id: product_product_partnerstraining0
|
||||
product_uom: product.uom_day
|
||||
product_uom_qty: 5.0
|
||||
th_weight: 0.0
|
||||
type: make_to_order
|
||||
picking_policy: direct
|
||||
pricelist_id: product.list0
|
||||
|
@ -49,12 +48,11 @@
|
|||
I check the procurements.
|
||||
-
|
||||
!python {model: procurement.order}: |
|
||||
from tools.translate import _
|
||||
orderline_obj = self.pool.get('sale.order.line')
|
||||
line_ids = orderline_obj.search(cr, uid, [('order_id','=', ref('sale_order_so0'))])
|
||||
orders = orderline_obj.browse(cr, uid, line_ids)
|
||||
proc_ids = map(lambda x: x.procurement_id.id, orders)
|
||||
assert proc_ids, _('No Procurements!')
|
||||
assert proc_ids, 'No Procurements!'
|
||||
-
|
||||
The scheduler runs.
|
||||
-
|
||||
|
@ -65,9 +63,8 @@
|
|||
Now I check that one task is created for my sale order.
|
||||
-
|
||||
!python {model: project.task}: |
|
||||
from tools.translate import _
|
||||
order_obj = self.pool.get('sale.order')
|
||||
order = order_obj.browse(cr, uid, ref('sale_order_so0'))
|
||||
task_id = self.search(cr, uid, [('name','like', order.name)])
|
||||
assert task_id, _('No Task is created!')
|
||||
assert task_id, 'No Task is created!'
|
||||
|
||||
|
|
Loading…
Reference in New Issue