From 62e70a533e0587e78d31621f6e3d8c549c68f4c3 Mon Sep 17 00:00:00 2001 From: "Mayur Maheshwari (OpenERP)" Date: Mon, 18 Feb 2013 18:06:42 +0530 Subject: [PATCH] [FIX]stock: added warring message if user mannualy add prodcut line in return product wizard bzr revid: mma@tinyerp.com-20130218123642-3f5nzld3qmjrm0ap --- addons/stock/wizard/stock_return_picking.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/stock/wizard/stock_return_picking.py b/addons/stock/wizard/stock_return_picking.py index 7c6f0655e7a..2aca6249d56 100644 --- a/addons/stock/wizard/stock_return_picking.py +++ b/addons/stock/wizard/stock_return_picking.py @@ -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