[MERGE] [FIX] stock: prevent creating new product line when returning products
bzr revid: mat@openerp.com-20130611092943-omj3kxhw2pmgpvwm
This commit is contained in:
@@ -183,6 +183,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 have manually created product lines, please delete them to proceed"))
|
||||
new_qty = data_get.quantity
|
||||
move = move_obj.browse(cr, uid, mov_id, context=context)
|
||||
new_location = move.location_dest_id.id
|
||||
|
||||
Reference in New Issue
Block a user