From 4666851d5941ca2db9fb277e564a9b275b1a11b2 Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Tue, 21 Jan 2020 09:09:38 +0100 Subject: [PATCH] [10.0][FIX] shopinvader: Shopinvader Manager inherits from queue manager --- shopinvader/migrations/10.0.2.7.1/post-migrate.py | 13 +++++++++++++ shopinvader/security/shopinvader_security.xml | 5 +---- 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 shopinvader/migrations/10.0.2.7.1/post-migrate.py diff --git a/shopinvader/migrations/10.0.2.7.1/post-migrate.py b/shopinvader/migrations/10.0.2.7.1/post-migrate.py new file mode 100644 index 0000000000..b6c68a3e6e --- /dev/null +++ b/shopinvader/migrations/10.0.2.7.1/post-migrate.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo import SUPERUSER_ID, api + + +def migrate(cr, version): + """Group Queue Job Manager should be updated""" + + env = api.Environment(cr, SUPERUSER_ID, {}) + job_manager = env.ref("queue_job.group_queue_job_manager") + shop_manager = env.ref("shopinvader.group_shopinvader_manager") + job_manager.implied_ids -= shop_manager diff --git a/shopinvader/security/shopinvader_security.xml b/shopinvader/security/shopinvader_security.xml index ba42254c67..e7a89a82d9 100644 --- a/shopinvader/security/shopinvader_security.xml +++ b/shopinvader/security/shopinvader_security.xml @@ -10,10 +10,7 @@ Shopinvader Manager - - - - +