diff --git a/setup/lib/cli.py b/setup/lib/cli.py index e9f27e56..873eba69 100755 --- a/setup/lib/cli.py +++ b/setup/lib/cli.py @@ -127,6 +127,7 @@ def main(): 'set_sys_params', #'setup_reports', 'consume_tours', + 'disable_planners', ] if cmd == 'setup': diff --git a/setup/lib/functions.py b/setup/lib/functions.py index 1aa09195..da95df3d 100644 --- a/setup/lib/functions.py +++ b/setup/lib/functions.py @@ -935,3 +935,12 @@ class DatenpolFunctions(): self._execute('web_tour.tour', 'create', vals) return True + + def disable_planners(self): + """Implementierungsplaner deaktivieren""" + + # The dashboard widget itself remains. It can be removed in the + # module web_settings_dashboard in dashboard.xml and dashboard.js. + + planner_ids = self._execute('web.planner', 'search', []) + return self._execute('web.planner', 'write', planner_ids, {'active': False})