Base Action Visibility Restriction

base_action_visibility_restriction
REPOSITORY
REPOSITORYOCA/server-ux
GIT
GIThttps://github.com/OCA/server-ux.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-ux/tree/14.0/base_action_visibility_restriction
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYExtra Tools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow, Cetmix
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow, Cetmix
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Giovanni, dessanhemrayev
WEBSITE
WEBSITEhttps://github.com/OCA/server-ux
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:07
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_server_action_form Server Action - base_action_visibility_restriction ir.actions.server field Inherits base.view_server_action_form
view_window_action_form ir.actions.windows.form - base_action_visibility_restriction ir.actions.act_window field Inherits base.view_window_action_form
Models touched (3)

New fields (1)
  • excluded_group_ids Many2many → res.groups
    column1='action_id' column2='gid' comodel_name='res.groups' relation='ir_actions_act_window_excluded_group_rel' string='Excluded Groups'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • get_bindings(self, model_name)
    @api.model@tools.ormcache('frozenset(self.env.user.groups_id.ids)', 'model_name')
    Filter out actions for which user group is excluded

New fields (1)
  • excluded_group_ids Many2many → res.groups
    column1='action_id' column2='gid' comodel_name='res.groups' relation='ir_actions_server_excluded_group_rel' string='Excluded Groups'
Public methods (1)
  • run(self)
    Prevent action running for excluded groups
REPOSITORY
REPOSITORYOCA/server-ux
GIT
GIThttps://github.com/OCA/server-ux.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-ux/tree/13.0/base_action_visibility_restriction
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYExtra Tools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSJordiMForgeFlow, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/server-ux
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_server_action_form Server Action - base_action_visibility_restriction ir.actions.server field Inherits base.view_server_action_form
view_window_action_form ir.actions.windows.form - base_action_visibility_restriction ir.actions.act_window field Inherits base.view_window_action_form
Models touched (3)

New fields (1)
  • excluded_group_ids Many2many → res.groups
    column1='action_id' column2='gid' comodel_name='res.groups' relation='ir_actions_act_window_excluded_group_rel' string='Excluded Groups'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • get_bindings(self, model_name)
    @api.model@tools.ormcache('frozenset(self.env.user.groups_id.ids)', 'model_name')
    Filter out actions for which user group is excluded

New fields (1)
  • excluded_group_ids Many2many → res.groups
    column1='action_id' column2='gid' comodel_name='res.groups' relation='ir_actions_server_excluded_group_rel' string='Excluded Groups'
Public methods (1)
  • run(self)
    Prevent action running for excluded groups