Access Field Control
Fine-grained field access by user group
Features:
- Field-level access per user group: mark fields as readonly, required or invisible for specific groups
- Rules can target a whole model or a single view
- Applies to the product forms and lists (product templates and product variants)
- No code changes needed: rules are managed on the Access Field tab of the view form (Settings › Technical › Views)
The Access Field module lets administrators restrict what some user groups can see or change on product records, without custom views. For each rule you choose the field, the group and the restriction:
- readonly: the group can see the field but not change it
- required: the group must fill the field
- invisible: the field is hidden for the group
Scope: the rules are applied on product.template and product.product views. Rules saved on other models are
not applied yet.
Integration: depends on base and product; Odoo 20.0.
Set up the rules
- Activate the developer mode and open the product form view: Settings > Technical > User Interface >
Views, model
product.template, viewproduct.template.product.form. - In the Access Field tab, click Add a line and fill in one rule per field: the Group, the Field (the Field Name is filled in automatically) and Readonly, Required or Invisible. A rule without a group applies to all users, the administrator included. Save the view.
In Field Name you can also enter the name or id of a group, block or page of the form (leave
Field empty and check Invisible to hide it), or an XPath expression (any text containing //).
What the users see
- A user outside the group sees the full product form in Invoicing > Customers > Products: Sales Price and Cost can be edited.
- A user of the Sales Agent group opens the same product: Sales Price is readonly and the Cost row is hidden. Reference is required, which shows when the product is saved.
- When the agent saves a new product without a reference, Odoo refuses to save it and marks the Reference field in red.
Limitations
- The rules apply only to the product and product variant forms and lists. Rules saved on views of other models have no effect.
- They are interface restrictions, not access rights: the fields can still be changed by import or API.
- When a menu opens the product without a specific view, the rules of all the product views apply;
when it names a view, only the rules saved on that view apply. The product lists of Invoicing >
Customers > Products / Sales > Products > Products (
product.template.list.sellable.inherit) and of Invoicing > Vendors > Products (product.template.list.purchasable.inherit, where Cost is shown by default) name their view: to hide Cost there too, add the same rule on both list views. - Odoo keeps the views in the browser: after a rule changes, the restricted user reloads the page (F5) and opens the form again.
- Any internal user can change the rules (the access rights on them are granted to Internal User), through the rule action, which has no menu, or through the API.
20.0.0.0.10 (2026-11-10)
Fixed
- An invisible rule written as an XPath (text containing
//) that matches nothing no longer builds an invalid id/name expression for the containers, so the form is not broken by an XPath error (ported from 19.0). - Tests for the access rules applied to the form and list views (readonly, required, invisible, containers, xpath), ported from 19.0.
20.0.0.0.9 (2026-11-10)
- Consultant sheet (
readme/FISA_CONSULTANT.md) and usage guide with screenshots, ported from 19.0.
20.0.0.0.8 (2026-11-10)
- Apps Store: the -20% campaign banner and band show the total price of the module together with its paid dependencies, as in the store.
20.0.0.0.7 (2026-11-09)
- Apps Store page: the euro sign in the -20% campaign band is written as an HTML entity, so it no longer shows as garbled characters.
20.0.0.0.6 (2026-11-02)
- Description rewritten in English and aligned with the code: the rules apply to product views (product.template, product.product); the rules are managed on the Access Field tab of the view form (there is no menu); the module targets Odoo 20.0.
20.0.0.0.5 (2026-10-22)
- Listed on Odoo Apps as Access Field Control (was Access Field). The technical name
deltatech_accessdoes not change.
20.0.0.0.4 (2026-10-15)
- Migration to Odoo 20.0: access rights moved to
security/ir.access.csv. - A rule restricted to a group now also applies to the users who have the group through an implied group (it used to check only the groups assigned directly to the user) (ACCESS-002).
- An invisible rule targeting a page, group, div or label by name/id is now applied even when no field rule matches the view (ACCESS-001).
19.0.0.0.4 (2026-09-30)
- New module icon in the flat style of the other modules; it replaces the old one.
✓ Included in the Terrabit support subscription
If Terrabit is your Odoo implementation partner, your support subscription includes the right to use this module and every other Terrabit module, with no separate purchase. The modules are kept up to date with each new Odoo version and supported by the developers who build them.
Need help getting started?
Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.
Questions about this module? Write to us — the developers who build it will answer.
More apps by Terrabit
Other modules from the same publisher, built to work together. All apps →
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 168 |
| Technical Name |
deltatech_access |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module