Commit 788a60be authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Reindex erp5 sql methods in ERP5Site_reindexAll

parent d43b6bf4
......@@ -141,6 +141,13 @@ for path, obj in portal.portal_skins.ZopeFind(portal.portal_skins, obj_metatypes
priority=object_priority,
after_tag=folder_after_tag).immediateReindexObject(sql_catalog_id=sql_catalog_id)
# Then we index ERP5 SQL Methods
print "#### Indexing ERP5 SQL Methods ####"
for path, obj in portal.portal_skins.ZopeFind(portal.portal_skins, obj_metatypes=('ERP5 SQL Method',), search_sub=1):
obj.activate(tag=folder_tag,
priority=object_priority,
after_tag=folder_after_tag).immediateReindexObject(sql_catalog_id=sql_catalog_id)
# Then we index everything except inventories
for folder in portal.objectValues(("ERP5 Folder",)):
if folder.getId().find('inventory') < 0:
......
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