diff --git a/trytond/trytond/ir/action.py b/trytond/trytond/ir/action.py index 646116e06f..92a628fa56 100644 --- a/trytond/trytond/ir/action.py +++ b/trytond/trytond/ir/action.py @@ -163,6 +163,7 @@ class ActionKeyword(ModelSQL, ModelView): @classmethod def __setup__(cls): super(ActionKeyword, cls).__setup__() + cls.__access__.add('action') table = cls.__table__() cls.__rpc__.update({ @@ -314,6 +315,7 @@ class ActionMixin(ModelSQL): def __setup__(cls): pool = Pool() super(ActionMixin, cls).__setup__() + cls.__access__.add('action') cls.action.domain = [ ('type', '=', cls.__name__), ] @@ -971,6 +973,11 @@ class ActionActWindowView( ondelete='CASCADE') model = fields.Function(fields.Char("Model"), 'on_change_with_model') + @classmethod + def __setup__(cls): + super().__setup__() + cls.__access__.add('act_window') + @classmethod def __register__(cls, module_name): super().__register__(module_name) @@ -1015,6 +1022,11 @@ class ActionActWindowDomain( act_window = fields.Many2One('ir.action.act_window', 'Action', required=True, ondelete='CASCADE') + @classmethod + def __setup__(cls): + super().__setup__() + cls.__access__.add('act_window') + @classmethod def __register__(cls, module_name): super().__register__(module_name) diff --git a/trytond/trytond/res/ir.xml b/trytond/trytond/res/ir.xml index d67a337705..3710ebc25c 100644 --- a/trytond/trytond/res/ir.xml +++ b/trytond/trytond/res/ir.xml @@ -78,111 +78,6 @@ this repository contains the full copyright notices and license terms. --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -468,85 +363,6 @@ this repository contains the full copyright notices and license terms. --> - - User in groups - - - - - - - - - - - - - - User in groups - - - - - - - - - - - - - - User in groups - - - - - - - - - - - - - - User in groups - - - - - - - - - - - - - - User in groups - - - - - - - - - - -