Commit 03748b79 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: No need to generate new Id while importing

parent 704afb37
......@@ -332,10 +332,9 @@ class BusinessManager(Folder):
self.title = imported_manager.title
for obj in imported_manager.objectValues():
delattr(obj, '__ac_local_roles__')
new_id = self.generateNewId()
# XXX: Donot merge this, needed just for migrated erp5_core
try:
self._setObject(new_id, aq_base(obj))
self._setObject(obj.id, aq_base(obj))
except Exception:
pass
obj.isIndexable = ConstantGetter('isIndexable', value=False)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment