[IMP]:yml for mrp operation
bzr revid: ksa@tinyerp.com-20110926095633-k4xbr9yextxcf4i8
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
!python {model: stock.picking}: |
|
||||
mrp_obj = self.pool.get('mrp.production')
|
||||
mo = mrp_obj.browse(cr, uid, ref("mrp_production_mo1"))
|
||||
self.action_cancel(cr, uid, mo.picking_id.id, context=None)
|
||||
self.action_cancel(cr, uid, [mo.picking_id.id], context=None)
|
||||
-
|
||||
Then I Cancel the production order and related stock moves.
|
||||
-
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
-
|
||||
I am checking Internal picking.
|
||||
-
|
||||
!python {model: stock.picking}: |
|
||||
!python {model: mrp.production}: |
|
||||
from tools.translate import _
|
||||
pick_ids = self.search(cr, uid, [('type','=','internal')])
|
||||
assert pick_ids, _('No Internal Pickings!')
|
||||
pick_ids = self.browse(cr, uid, ref("mrp_production_mo1"))
|
||||
assert pick_ids.picking_id.id, _('No Internal Pickings!')
|
||||
-
|
||||
In order to cancel the MO, first cancel its picking
|
||||
-
|
||||
@@ -47,3 +47,10 @@
|
||||
Then cancel The Manufacturing order.
|
||||
-
|
||||
!workflow {model: mrp.production, action: button_cancel, ref: mrp_production_mo1}
|
||||
-
|
||||
I check that there is one Work order generated related to the production order that is cancel or not.
|
||||
-
|
||||
!python {model: mrp.production.workcenter.line}: |
|
||||
from tools.translate import _
|
||||
order_id = self.search(cr, uid, [('production_id','=', ref('mrp_production_mo1')),('state','=','cancel')])
|
||||
assert order_id, _('Work order is not cancel for this production order!')
|
||||
Reference in New Issue
Block a user