| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 137 |
| Technical Name |
hst_m2o_restrict |
| License | LGPL-3 |
| Website | https://www.hsxtech.net |
HST Many2One Navigation Restrict
Description
Enterprise
A simple Odoo tool that lets admins hide the small arrow next to a many2one field — the one that opens the linked record. This stops certain users from clicking through to open or edit the related record, while still letting them see its name
You set this up from General Settings: just pick the model, the field, and the users it should apply to. Leave the users blank and it applies to everyone. The same setup can also be used to stop users from clicking many2many tags to open those records.
Features
- → Hide the many2one "open record" arrow per model/field combination
- → Restrict navigation for specific users, or leave the user field empty to apply it to everyone
- → Configure restrictions directly from Settings — no coding required
- → Works on any model/field using the many2one widget
- → Also disables tag-click navigation on many2many fields
- → Underlying field data and functionality are untouched — only the navigation arrow/tag click is affected
- → Add multiple restriction rows, each configured independently
- → Simple list-based configuration UI, easy to add, edit, or remove rules
How It Works
| Step | Description |
|---|---|
| 1. Configure | Go to Settings > Field Navigation Restrictions and add the model and field you want to restrict (e.g., Sales Order > Customer) |
| 2. Assign Users | Select the users the restriction should apply to, or leave it blank to restrict it for everyone |
| 3. Save | Save the settings; the restriction takes effect immediately |
| 4. Result | Restricted users no longer see the open-record arrow (or many2many tag click) on that field |
| 5. Adjust Anytime | Add, edit, or delete restriction rows as your access needs change |
Configuration Options
| Option | Default | Description |
|---|---|---|
| Model | — | Select the model whose field navigation you want to restrict (e.g., sale.order) |
| Field | — | Select the many2one (or many2many) field on that model to restrict |
| Restricted Users | Empty (all users) | Choose specific users to restrict, or leave blank to apply to everyone |
Screenshots
By default, Many2One fields display an arrow icon next to them, like the one shown in the highlighted box below.
Upon clicking the arrow, the form view of the linked record opens, as shown below.
After installing the HST Many2One Navigation Restrict module, a new "Field Navigation Restrictions" section appears at the bottom of Settings. Here, you can select a model and field combination to restrict, and specify the users for whom the navigation arrow (or many2many tag click) should be hidden.
Due to the restriction applied for the Administrator on the Customer field in Sales Order, the navigation arrow no longer appears, as shown below.
Services
Please log in to comment on this module