OdooWiki OCA HUB

Update Restrict Model

base_model_restrict_update folder_open OCA/server-tools open_in_new
Others License: LGPL-3

This module adds the following features:

  • The ability to limit the update permissions for a model to certain groups
  • The ability to revoke update permissions for specific users

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets administrators make specific models read-only for everyone except chosen user groups, and mark individual users as read-only so they cannot change any business records.

This module gives administrators two ways to prevent unwanted changes to data.

  • On each model record (Technical > Models), a new "Update Restrict Model" checkbox appears. When ticked, the model becomes read-only unless the user belongs to one of the "Update-Allowed Groups" selected on the same screen.
  • On each user form, a "Read-only" toggle button is added. When switched on, that user can only read business records and cannot create, modify or delete them.

A safety rule prevents making an administrator read-only: if a user belongs to the system administrator group and the read-only toggle is on, Odoo raises an error.

In Settings, under user default rights, there is a new "Excluded Models From Readonly" field. Models listed there (comma-separated) are exempt from the read-only restriction. By default, bus.presence is already excluded.

When a restricted user tries to write, create or delete, Odoo blocks the action with an access error message saying they are only allowed to read the record. Superusers and models that are updated by the system itself are not affected. The module touches ir.model, ir.model.access, res.config.settings and res.users.

Depends on

base_setup
Models and fields (4)
  • ir.model · extends an existing modelrestrict_update (Update Restrict Model), update_allowed_group_ids (Update-Allowed Groups)
  • res.users · extends an existing modelis_readonly_user (Read-only User)
  • ir.model.access · extends an existing model
  • res.config.settings · extends an existing modelexcluded_models_from_readonly (Excluded Models from Read-only)

Text generated by AI (DeepSeek) from reading the Odoo 18.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: 6 confirmed, 3 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/server-tools.

terminal Installation and usage

OCA documentation · Odoo 18.0

When you want to limit the update permissions of a model to certain groups:

  • Go to Settings \> Techinical \> Database Structure \> Models
  • Open the form view of the model, and select Update Restrict Model
  • Assign the groups that should be exempt from the restriction to Update-allowed Groups

When you want revoke update permissions for a specific user:

  • Go to Settings \> Users & Companies \> Users
  • Open the user's form view and click the Read-only smart button
  • In case you wish to exclude some models from being read-only, go to Settings \> General Settings and update Excluded Models from Read-only under the Permissions section by listing the models separated by commas (e.g., sale.order,sale.order.line).

No verified information in OCA: Installation, Usage.

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.