Commit bd9266ae authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Check for portal_type while installing Tempaltes

parent 91cb162f
...@@ -2412,6 +2412,9 @@ class ERP5Generator(PortalGenerator): ...@@ -2412,6 +2412,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