Web Button Visibility
web_button_visibility · OCA/web
Health
55/100
fair
-
Security25/25No findings
-
Activity20/25Last human commit 7 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.06 MB
Module directory on disk
Code analysis
2 migration notes
3 models
5 views
0 HTTP endpoints
Migration considerations
Base— Migrating to 16.0: the web client no longer calls `fields_view_get`: override `_get_view` instead. migration-fields-view-get · sourceview_users_demo_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_hide_button_rule_form |
model.button.rule.form.view | model.button.rule | form | New |
view_model_form_inherit |
view.model.form.inherit | ir.model | form | Inherits base.view_model_form |
view_users_demo_form |
res.users.demo.form1 | res.users | form | New |
view_users_demo_form2 |
res.users.demo.form2 | res.users | form | New |
view_users_demo_form3 |
res.users.demo.form3 | res.users | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (3)-
create_hide_button_field(self, restrictions, arch)Create a computed field which will be used in attrs of button to hide it -
default_get(self, fields_list) -
fields_view_get(self, view_id=None, view_type=False, toolbar=False, submenu=False)@api.model
New fields (1)
-
hide_button_rule_idsOne2many → model.button.ruleargs: 'model.button.rule', 'model_id'
No public methods.
New fields (7)
-
actionSelectiondefault='hide'required=True args: [('hide', 'Hide')] -
button_nameCharrequired=True -
button_visibility_field_idMany2one → ir.model.fieldsondelete='cascade' args: 'ir.model.fields' -
condition_domainChar -
group_idsMany2many → res.groupsrequired=True args: 'res.groups' -
model_idMany2one → ir.modelindex=Trueondelete='cascade' args: 'ir.model' -
model_nameCharrelated='model_id.model'string='Model Name'
-
create(self, vals)@api.model -
create_restriction_field(self)Create computed visibility field to hide button -
get_button_field_name(self) -
unlink(self) -
write(self, vals)