[IMP] Improved the test case to make the product produce.
bzr revid: psa@tinyerp.com-20130912090636-h28zgcheleg9h9vm
This commit is contained in:
parent
a0cb8675df
commit
8985dda550
|
@ -51,6 +51,17 @@
|
|||
assert order.state == 'in_production', 'Production order should be in production State.'
|
||||
for move_created in order.move_created_ids:
|
||||
move_created.action_done()
|
||||
-
|
||||
I produce product.
|
||||
-
|
||||
!python {model: mrp.product.produce}: |
|
||||
context.update({'active_id': ref('mrp_production_servicetype_mo1')})
|
||||
-
|
||||
!record {model: mrp.product.produce, id: mrp_product_produce_1}:
|
||||
mode: 'consume_produce'
|
||||
-
|
||||
!python {model: mrp.product.produce}: |
|
||||
self.do_produce(cr, uid, [ref('mrp_product_produce_1')], context=context)
|
||||
-
|
||||
I check production order after produced.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue