Commit 0774a0a6 authored by Ivan Tyagov's avatar Ivan Tyagov

OSOE website is not necessarily part of standard configurator so only adjust...

OSOE website is not necessarily part of standard configurator so only adjust if it is indeed installed.
parent 9ea537e5
Pipeline #16875 running with stage
in 0 seconds
...@@ -91,8 +91,10 @@ for business_application_category_id, module_ids in module_business_application_ ...@@ -91,8 +91,10 @@ for business_application_category_id, module_ids in module_business_application_
module.edit(business_application = business_application_category_id) module.edit(business_application = business_application_category_id)
# activate all available languages to allow user can select them in the ERP5JS UI # activate all available languages to allow user can select them in the ERP5JS UI
available_language_list = list(portal.Localizer.get_supported_languages()) osoe_runner_website = getattr(portal.web_site_module, "osoe_runner", None)
portal.web_site_module.osoe_runner.edit(available_language_set = available_language_list) if osoe_runner_website is not None:
available_language_list = list(portal.Localizer.get_supported_languages())
osoe_runner_website.edit(available_language_set = available_language_list)
print "Indexing translations" print "Indexing translations"
portal.ERP5Site_updateTranslationTable() portal.ERP5Site_updateTranslationTable()
......
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