| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/web |
| GIT | |
| GIT | https://github.com/OCA/web.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/web/tree/14.0/web_button_visibility |
| VERSION | |
| VERSION | 1.1.0 |
| CATEGORY | |
| CATEGORY | Web |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Ilyas, ooops404 |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Ilyas, ooops404 |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, Simone Rubino, oca-ci, Ilyas, Melody Uffreduzzi |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/web |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:41:08 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - web - base |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| 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 | xpath | 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 |
No new fields.
Public methods (3)create_hide_button_field(self, restrictions, arch)
default_get(self, fields_list)
fields_view_get(self, view_id=None, view_type=False, toolbar=False, submenu=False)
hide_button_rule_ids
One2many → model.button.rule
No public methods.
action
Selection
default='hide'
required=True
args: [('hide', 'Hide')]
button_name
Char
required=True
button_visibility_field_id
Many2one → ir.model.fields
ondelete='cascade'
args: 'ir.model.fields'
condition_domain
Char
group_ids
Many2many → res.groups
required=True
args: 'res.groups'
model_id
Many2one → ir.model
index=True
ondelete='cascade'
args: 'ir.model'
model_name
Char
related='model_id.model'
string='Model Name'
create(self, vals)
create_restriction_field(self)
get_button_field_name(self)
unlink(self)
write(self, vals)