Commit 380fb229 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Rerun cloning of objects and properties after a bt5 is uninstalled

parent feabcd77
......@@ -5353,6 +5353,11 @@ Business Template is a set of definitions, such as skins, portal types and categ
# It is better to clear cache because the uninstallation of a
# template deletes many things from the portal.
self.getPortalObject().portal_caches.clearAllCache()
# Rerun migration after uninstallation so as to maintain consistency between
# objects and properties of sql_catalog(specially needed for bt5 having
# CatalogMethodTemplateItem objects)
site = self.getPortalObject()
site.migrateSQLCatalogToERP5Catalog()
security.declareProtected(Permissions.ManagePortal, 'uninstall')
uninstall = _uninstall
......
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