From 8985dda5507d5ff371bb4c145d57fed46eccc184 Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Thu, 12 Sep 2013 14:36:36 +0530 Subject: [PATCH] [IMP] Improved the test case to make the product produce. bzr revid: psa@tinyerp.com-20130912090636-h28zgcheleg9h9vm --- addons/mrp/test/bom_with_service_type_product.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/addons/mrp/test/bom_with_service_type_product.yml b/addons/mrp/test/bom_with_service_type_product.yml index d6fb35127a0..04e3520f272 100644 --- a/addons/mrp/test/bom_with_service_type_product.yml +++ b/addons/mrp/test/bom_with_service_type_product.yml @@ -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. -