Commit 155bc090 authored by Julien Muchembled's avatar Julien Muchembled

Remove useless call to reindexObject when creating an object

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30375 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b1f7dc24
......@@ -365,6 +365,7 @@ class ERP5TypeInformation(XMLObject,
ob.portal_type = self.getId()
if not temp_object:
# Do not reindex object because it's already done by manage_afterAdd
self.updateLocalRolesOnDocument(ob, reindex=False)
# notify workflow after generating local roles, in order to prevent
......@@ -372,9 +373,6 @@ class ERP5TypeInformation(XMLObject,
if hasattr(aq_base(ob), 'notifyWorkflowCreated'):
ob.notifyWorkflowCreated()
# Reindex the object at the end
ob.reindexObject()
init_script = self.getTypeInitScriptId()
if init_script:
# Acquire the init script in the context of this object
......
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