This module allows to hide specific buttons for specific user groups if specific conditions are verified.
auto_awesome What this module does
AI-generated from the code · Odoo 14.0Lets administrators hide specific buttons on any Odoo form for chosen user groups, optionally only when a condition is met. Rules are configured per model and applied automatically to the form view.
This module adds a way to control which buttons appear on form views, without changing the original screens. An administrator creates a rule that says: on this model, hide this button for these user groups, and optionally only when a filter condition is true.
Where it appears: - On the model configuration screen (Settings > Technical > Models), a new "Hide Button Rules" tab lists the rules attached to that model. - Each rule is edited in its own form, where you pick the model, type the button's technical name, set an optional condition, and choose the user groups.
What it does automatically: - When a rule is saved, the system checks that the button really exists on that model; otherwise it refuses to save. - It creates a hidden technical field on the model and uses it to make the button invisible for the selected groups. - The button is hidden both on existing records and when creating a new record. - If a condition is given, the button is hidden only for records matching that condition; otherwise it is hidden for all records of that model for those groups. - Only internal users are affected; rules are cached and refreshed when rules change.
It touches the base form-view mechanism and the models configuration, and stores rules in model.button.rule.
Depends on
Models and fields (3)
- base · extends an existing model
- ir.model · extends an existing modelhide_button_rule_ids
- model.button.rule · new modelaction, model_id, group_ids, model_name (Model Name), button_name, condition_domain, button_visibility_field_id
Text generated by AI (DeepSeek) from reading the Odoo 14.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/web.
terminal Installation and usage
OCA documentation · Odoo 14.0Usage
Source · Odoo 14.0Go to Settings > Technical > Models, open a model
In tab "Hide button rule", add a button name and a group, and optionally a condition
For users of that group and as long as the condition is met, button is not visible.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.