From b029b434cd42c1aba67fb2bf85c9be25baee5dde Mon Sep 17 00:00:00 2001 From: "Rucha (Open ERP)" Date: Mon, 14 Nov 2011 15:05:38 +0530 Subject: [PATCH] [IMP]: mrp: Improvement in order of yml test case bzr revid: rpa@tinyerp.com-20111114093538-19hb52sm6h3f05qy --- addons/mrp/test/mrp_production_order.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/addons/mrp/test/mrp_production_order.yml b/addons/mrp/test/mrp_production_order.yml index 265517761da..237da35ab06 100644 --- a/addons/mrp/test/mrp_production_order.yml +++ b/addons/mrp/test/mrp_production_order.yml @@ -18,17 +18,6 @@ - !python {model: mrp.production}: | self.action_compute(cr, uid, [ref("mrp_production_mo1")]) -- - I confirm the manufacturing order for 5 PC1. -- - !workflow {model: mrp.production, action: button_confirm, ref: mrp_production_mo1} -- - I check there is an internal picking for this MO to bring components in Raw Materials Location. -- - !python {model: mrp.production}: | - from tools.translate import _ - pick_ids = self.browse(cr, uid, ref("mrp_production_mo1")) - assert pick_ids.picking_id.id, _('No Internal Picking created for this manufacturing order!') - I remembered that we have to produce 6.0 PC1 instead of 5.0, so I create record for wizard 'Change Qty'. - @@ -44,6 +33,17 @@ !python {model: change.production.qty}: | context = {"lang": 'en_US', "active_model":"mrp.production", "active_ids": [ref("mrp_production_mo1")], "tz": False, "active_id":ref('mrp_production_mo1')} self.change_prod_qty(cr, uid, [ref("mrp_production_qty")], context=context) +- + I confirm the manufacturing order for 5 PC1. +- + !workflow {model: mrp.production, action: button_confirm, ref: mrp_production_mo1} +- + I check there is an internal picking for this MO to bring components in Raw Materials Location. +- + !python {model: mrp.production}: | + from tools.translate import _ + pick_ids = self.browse(cr, uid, ref("mrp_production_mo1")) + assert pick_ids.picking_id.id, _('No Internal Picking created for this manufacturing order!') - I compute the scheduler to procure the components based on their supply method. -