From 828d444545b92759c19daf720e89d5480e937a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 26 Mar 2020 00:12:43 +0100 Subject: [PATCH] Skip check access on ir.ui.menu for wizard User launching a wizard from menu should not need write access on the menu. issue9173 review301161002 --- trytond/wizard/wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trytond/wizard/wizard.py b/trytond/wizard/wizard.py index ec5c89623c..aeb2b79f61 100644 --- a/trytond/wizard/wizard.py +++ b/trytond/wizard/wizard.py @@ -232,7 +232,7 @@ class Wizard(URLMixin, PoolBase): with Transaction().set_context(_check_access=True): model = context.get('active_model') - if model: + if model and model != 'ir.ui.menu': ModelAccess.check(model, 'read') groups = set(User.get_groups()) wizard_groups = ActionWizard.get_groups(cls.__name__, @@ -241,7 +241,7 @@ class Wizard(URLMixin, PoolBase): if not groups & wizard_groups: raise UserError('Calling wizard %s is not allowed!' % cls.__name__) - elif model: + elif model and model != 'ir.ui.menu': ModelAccess.check(model, 'write') @classmethod