From 4f0a3083b1be8d11223a2a304cab4bfa76440cff Mon Sep 17 00:00:00 2001 From: "Kirti Savalia (OpenERP)" Date: Mon, 26 Sep 2011 10:29:55 +0530 Subject: [PATCH] [IMP]:set in proper flow for mrp bzr revid: ksa@tinyerp.com-20110926045955-wrqewcb1047fi9lf --- addons/mrp/test/mrp_production_order.yml | 25 ++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/addons/mrp/test/mrp_production_order.yml b/addons/mrp/test/mrp_production_order.yml index f87a1badc74..fecb7e31f1e 100644 --- a/addons/mrp/test/mrp_production_order.yml +++ b/addons/mrp/test/mrp_production_order.yml @@ -27,6 +27,19 @@ I confirm the order. - !workflow {model: mrp.production, action: button_confirm, ref: mrp_production_mo1} +- + I create record for producing products with quantity 8.00 +- + !record {model: change.production.qty, id: mrp_production_qty}: + product_qty: 8.0 +- + Changes the Quantity of Product. +- + !python {model: change.production.qty}: | + context = {"lang": 'en_US', "active_model":"mrp.production", "active_ids": [ref("mrp_production_qty")], "tz": False, "active_id":ref('mrp_production_qty')} + self.default_get(cr, uid, ["product_qty"], context) + self.change_prod_qty(cr, uid, [ref("mrp_production_qty")], context=context) +- - I am checking Procurement orders for components of PC1. - @@ -92,18 +105,6 @@ !record {model: mrp.product.produce, id: mrp_product_produce1}: product_qty: 5.00 mode: 'consume_produce' -- - I create record for producing products with quantity 8.00 -- - !record {model: change.production.qty, id: mrp_production_qty}: - product_qty: 8.0 -- - Changes the Quantity of Product. -- - !python {model: change.production.qty}: | - context = {"lang": 'en_US', "active_model":"mrp.production", "active_ids": [ref("mrp_production_qty")], "tz": False, "active_id":ref('mrp_production_qty')} - self.default_get(cr, uid, ["product_qty"], context) - self.change_prod_qty(cr, uid, [ref("mrp_production_qty")], context=context) - Finally my production order is done. -