[IMP]:set in proper flow for mrp
bzr revid: ksa@tinyerp.com-20110926045955-wrqewcb1047fi9lf
This commit is contained in:
parent
8d814c0a73
commit
4f0a3083b1
|
@ -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.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue