[IMP]:change quantity for product in mrp

bzr revid: ksa@tinyerp.com-20110920083126-4w3ad8izopmh4xd4
This commit is contained in:
Kirti Savalia (OpenERP) 2011-09-20 14:01:26 +05:30
parent f12c2496f6
commit f840413c84
2 changed files with 18 additions and 7 deletions

View File

@ -142,4 +142,16 @@
-
Then I Cancel the production order and related stock moves.
-
!workflow {model: mrp.production, action: button_cancel, ref: mrp_production_mo2}
!workflow {model: mrp.production, action: button_cancel, ref: mrp_production_mo2}
-
I am set the product quantity.
-
!record {model: change.production.qty, id: mrp_production_qty}:
product_qty: 5.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)

View File

@ -241,10 +241,9 @@
-
!workflow {model: mrp.repair, action: repair_confirm, ref: mrp_repair_rma2}
-
Cancel Repair order using wizard.
Cancel Repair order using wizard.
-
!python {model: mrp.repair.cancel}: |
context = {"lang": 'en_US', "active_model":
"mrp.repair", "active_ids": [ref("mrp_repair_rma2")], "tz": False, "active_id":ref('mrp_repair_rma2')}
self.fields_view_get(cr, uid, False, "form", context)
self.cancel_repair(cr, uid, [ref("mrp_repair_rma2")], context=context)
!python {model: mrp.repair.cancel}: |
context = {"lang": 'en_US', "active_model":"mrp.repair", "active_ids": [ref("mrp_repair_rma2")], "tz": False, "active_id":ref('mrp_repair_rma2')}
self.fields_view_get(cr, uid, False, "form", context)
self.cancel_repair(cr, uid, [ref("mrp_repair_rma2")], context=context)