[IMP]mrp: instead of removing the line give the proper comment of that line

bzr revid: ron@tinyerp.com-20110603065938-chm15leo6r9aazil
This commit is contained in:
ron@tinyerp.com 2011-06-03 12:29:38 +05:30
parent 0bb1e1cba0
commit 87aa4380d4
1 changed files with 2 additions and 0 deletions

View File

@ -137,6 +137,8 @@ class StockMove(osv.osv):
wf_service = netsvc.LocalService("workflow")
for move in self.browse(cr, uid, ids, context=context):
new_moves = super(StockMove, self).action_scrap(cr, uid, [move.id], product_qty, location_id, context=context)
#If we are not scrapping our whole move, tracking and lot references must not be removed
#self.write(cr, uid, [move.id], {'prodlot_id': False, 'tracking_id': False})
production_ids = production_obj.search(cr, uid, [('move_lines', 'in', [move.id])])
for prod_id in production_ids:
wf_service.trg_validate(uid, 'mrp.production', prod_id, 'button_produce', cr)