Base Action Visibility Restriction Domain

base_action_visibility_restriction_domain
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_domain
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYExtra Tools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ilyas, Ooops404
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ilyas, Ooops404
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Ilyas
WEBSITE
WEBSITEhttps://github.com/OCA/server-ux
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:07
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-ux:
    - base_action_visibility_restriction
odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
ir_actions_restriction_form_view ir.actions.restriction.form.view ir.actions.restriction form New
view_server_action_form Server Action - restriction_domain ir.actions.server label Inherits base_action_visibility_restriction.view_server_action_form
view_window_action_form Window Action - restriction_domain ir.actions.act_window label Inherits base_action_visibility_restriction.view_window_action_form
Models touched (4)

New fields (1)
  • restriction_ids One2many → ir.actions.restriction
    args: 'ir.actions.restriction', 'window_action_id'
Public methods (1)
  • read(self, fields=None, load='_classic_read')

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 (5)
  • condition_domain Char
    help='Defines records on which group can run action'
  • group_id Many2one → res.groups
    args: 'res.groups'
  • model Char
    compute='_compute_model'
  • server_action_id Many2one → ir.actions.server
    args: 'ir.actions.server'
  • window_action_id Many2one → ir.actions.act_window
    args: 'ir.actions.act_window'
Public methods (0)

No public methods.

New fields (1)
  • restriction_ids One2many → ir.actions.restriction
    args: 'ir.actions.restriction', 'server_action_id'
Public methods (1)
  • run(self)
    Prevent action running based on groups and domain