OdooWiki OCA HUB

Web Access Rules Buttons

web_access_rule_buttons folder_open OCA/web open_in_new
Web License: AGPL-3

This addon disables the Edit button on the form views if the user cannot edit the current record according to the record access rules.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

This module disables the Edit button on form views when the current user is not allowed to modify the record according to Odoo's record access rules, so users cannot start editing a record they cannot save.

When a user opens a record in a form view, Odoo normally shows an Edit button. This module checks the record access rules for the current user and, if writing is not allowed, the Edit button is shown as disabled (greyed out) instead of clickable.

The check is done through a new method available on all models, check_access_rule_all, which returns whether the user can read, create, write or delete the record. The form view only uses the write result to decide whether to enable the Edit button.

  • The behaviour applies to all models because the method is added to the base model inherited by every model.
  • For temporary records (for example, unsaved wizards) or records without an ID, access is considered allowed.
  • The button state is refreshed each time the form view is updated, so it stays in line with the current record and user.

There are no new menus, reports, scheduled actions or emails. The change is purely in the web client interface: it prevents users from entering edit mode on records they are not allowed to modify, avoiding a confusing error when they try to save.

Depends on

web
Models and fields (1)
  • base · extends an existing model

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 14.0

When using Odoo, even if a user has no rights to edit a record, the Edit button is shown. The user can edit the record but won't be able to save his changes. Now, the user won't be able to click on the Edit button.

No verified information in OCA: Installation, Configuration.

info

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.