Commit bd9266ae authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Check for portal_type while installing Tempaltes

parent 91cb162f
......@@ -2412,7 +2412,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