Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits: c0fc26c0 by Cédric Krier at 2023-01-26T21:28:28+01:00 Do not check access for action window without model The check was introduced in d41d48d68cdf but without ensuring that the action has a model to check. Closes #12029 - - - - - 1 changed file: - trytond/trytond/ir/action.py Changes: ===================================== trytond/trytond/ir/action.py ===================================== @@ -281,6 +281,7 @@ for type_, action_ids in types.items(): for value in Action.get_action_values(type_, action_ids): if (type_ == 'ir.action.act_window' + and value['res_model'] and not ModelAccess.check( value['res_model'], raise_exception=False)): continue View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/c0fc26c0c698ef3e41acb7dbc3cfd5f8e1fc58ce -- View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/c0fc26c0c698ef3e41acb7dbc3cfd5f8e1fc58ce You're receiving this email because of your account on foss.heptapod.net.