From d93a53885b42f610e44b52335a72da4d07f0cecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Tue, 24 Sep 2024 16:35:23 +0200 Subject: [PATCH] [OU-ADD] maintenance_project: Remove Project > Administrator from Equipment manager group Related to https://github.com/OCA/maintenance/pull/424 TT50829 --- .../migrations/16.0.2.0.0/post-migration.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 maintenance_project/migrations/16.0.2.0.0/post-migration.py diff --git a/maintenance_project/migrations/16.0.2.0.0/post-migration.py b/maintenance_project/migrations/16.0.2.0.0/post-migration.py new file mode 100644 index 000000000..84d02601d --- /dev/null +++ b/maintenance_project/migrations/16.0.2.0.0/post-migration.py @@ -0,0 +1,11 @@ +# Copyright 2024 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + env.ref("maintenance.group_equipment_manager").write( + {"implied_ids": [(3, env.ref("project.group_project_manager").id)]} + )