TIP: You can type at any time to perform a new search.
Web Button Visibility
web_button_visibility · OCA/web
- Repository
- OCA/web · module folder · Try on Runboat
- Module version
- 1.1.0
- Category
- Web
- Folder size
- 0.06 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/web
- Last tracking update
- 2026-08-07 07:47:28
- Authors
- Odoo Community Association (OCA), Ilyas, ooops404
- Maintainers
- Odoo Community Association (OCA), Ilyas, ooops404
- Committers
- Simone Rubino, Weblate, OCA-git-bot, oca-ci, Ilyas, Melody Uffreduzzi
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Code Analysis ⓘ
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)