[IMP] Improved the test case to make the product produce.

bzr revid: psa@tinyerp.com-20130912090636-h28zgcheleg9h9vm
This commit is contained in:
Paramjit Singh Sahota 2013-09-12 14:36:36 +05:30
parent a0cb8675df
commit 8985dda550
1 changed files with 11 additions and 0 deletions

View File

@ -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.
-