Commit e24977a5 authored by Rafael Monnerat's avatar Rafael Monnerat

ERP5/TemplateTool: Do not update catalog unless for dependencies

   the update_catalog parameter is explicity destinated to the entries
   on the template_list, never to its dependencies.

   The side effect is that reindexation is trigger to the whole list of
   business templates in the site.
parent c192bbbd
...@@ -1256,7 +1256,10 @@ class TemplateTool (BaseTool): ...@@ -1256,7 +1256,10 @@ class TemplateTool (BaseTool):
bt_url = '%s/%s' % (repository, bt_id) bt_url = '%s/%s' % (repository, bt_id)
param_dict = dict(download_url=bt_url, param_dict = dict(download_url=bt_url,
only_different=only_different, only_different=only_different,
reinstall=force_all) reinstall=force_all,
update_catalog=False)
if bt_id in template_list:
param_dict["update_catalog"] = update_catalog param_dict["update_catalog"] = update_catalog
if activate: if activate:
......
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