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