Commit e16c4fb9 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Run migration everytime a business template is installed

parent 350c51fd
...@@ -5315,6 +5315,9 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -5315,6 +5315,9 @@ Business Template is a set of definitions, such as skins, portal types and categ
# Clear cache to avoid reusing cached values with replaced objects. # Clear cache to avoid reusing cached values with replaced objects.
site.portal_caches.clearAllCache() site.portal_caches.clearAllCache()
# Update or migrate methods and properties from SQLCatlog to ERP5Catalog
site.migrateSQLCatalogToERP5Catalog()
security.declareProtected(Permissions.ManagePortal, 'install') security.declareProtected(Permissions.ManagePortal, 'install')
install = _install install = _install
......
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