[FIX]stock: added warring message if user mannualy add prodcut line in return product wizard
bzr revid: mma@tinyerp.com-20130218123642-3f5nzld3qmjrm0ap
This commit is contained in:
parent
7bfb7eaa13
commit
62e70a533e
|
@ -180,6 +180,8 @@ class stock_return_picking(osv.osv_memory):
|
|||
for v in val_id:
|
||||
data_get = data_obj.browse(cr, uid, v, context=context)
|
||||
mov_id = data_get.move_id.id
|
||||
if not mov_id:
|
||||
raise osv.except_osv(_('Warning !'), _("You can't process the move which is in done state ! \n Or \n You have manually created line in wizard. Please delete any lines you created !"))
|
||||
new_qty = data_get.quantity
|
||||
move = move_obj.browse(cr, uid, mov_id, context=context)
|
||||
new_location = move.location_dest_id.id
|
||||
|
|
Loading…
Reference in New Issue