From 0bbde1f36229c680246ecf507deb47a78c18f5bd Mon Sep 17 00:00:00 2001 From: Mathieu VATEL Date: Tue, 3 Jul 2012 09:58:41 +0200 Subject: [PATCH] [IMP] - Getting automatically the name of the related created object on acquision --- stock_move_location/stock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stock_move_location/stock.py b/stock_move_location/stock.py index 3e2d37513..9d3828f01 100644 --- a/stock_move_location/stock.py +++ b/stock_move_location/stock.py @@ -118,6 +118,7 @@ class stock_inventory(osv.osv): act = act_obj.read(cr, uid, act_id) context = eval(act['context']) context['default_inventory_id'] = inventory_data.id + context['default_name'] = inventory_data.name act['context'] = context return act