mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] - Getting automatically the name of the related created object on acquision
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user