Base Action Visibility Restriction Domain
base_action_visibility_restriction_domain · OCA/server-ux
Health
41/100
poor
-
Security25/25No findings
-
Activity6/25Last human commit 32 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis
0 migration notes
4 models
3 views
0 HTTP endpoints
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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 | form | Inherits base_action_visibility_restriction.view_server_action_form |
view_window_action_form |
Window Action - restriction_domain | ir.actions.act_window | form | Inherits base_action_visibility_restriction.view_window_action_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (1)
-
restriction_idsOne2many → ir.actions.restrictionargs: 'ir.actions.restriction', 'window_action_id'
-
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_domainCharhelp='Defines records on which group can run action' -
group_idMany2one → res.groupsargs: 'res.groups' -
modelCharcompute='_compute_model' -
server_action_idMany2one → ir.actions.serverargs: 'ir.actions.server' -
window_action_idMany2one → ir.actions.act_windowargs: 'ir.actions.act_window'
No public methods.
New fields (1)
-
restriction_idsOne2many → ir.actions.restrictionargs: 'ir.actions.restriction', 'server_action_id'
-
run(self)Prevent action running based on groups and domain