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,8 +1256,11 @@ class TemplateTool (BaseTool): ...@@ -1256,8 +1256,11 @@ 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,
param_dict["update_catalog"] = update_catalog update_catalog=False)
if bt_id in template_list:
param_dict["update_catalog"] = update_catalog
if activate: if activate:
self.activate(**activate_kw).\ self.activate(**activate_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