[IMP]: mrp: Improvement in order of yml test case

bzr revid: rpa@tinyerp.com-20111114093538-19hb52sm6h3f05qy
This commit is contained in:
Rucha (Open ERP)
2011-11-14 15:05:38 +05:30
parent c4186fcbde
commit b029b434cd
+11 -11
View File
@@ -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.
-