Commit c0f7d865 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

bt5_config: Check for portal_type while installing Tempaltes

parent 9f3d55f6
......@@ -2344,7 +2344,10 @@ class ERP5Generator(PortalGenerator):
continue
url = getBootstrapBusinessTemplateUrl(bt)
bt = template_tool.download(url)
bt.install(**kw)
if bt.getPortalType() == 'Business Manager':
template_tool.updateInstallationState([bt])
else:
bt.install(**kw)
def setupERP5Promise(self,p,**kw):
"""
......
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