[IMP] - Getting automatically the name of the related created object on acquision

This commit is contained in:
Mathieu VATEL
2012-07-03 09:58:41 +02:00
parent f24f103da4
commit 0bbde1f362

View File

@@ -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