Restrict field access

Make it simple to restrict read and/or write access to certain fields base on some condition

Technical Name:
Therp BV
  • Odoo Version

Restrict field access

This module was written to help developers restricting access to fields in a secure and flexible manner on record level.

If you're not a developer, this module is not for you as you need to write code in order to actually use it.


To use this module, you need to inherit this mixin for the model whose fields you want to restrict, and implement at least the following methods to do something useful:

The example code here will allow only reading a few fields for partners of which the current user is neither the sales person nor in this partner's sales team.

Read the comments of the mixin, that's part of the documentation. Also have a look at the tests, that's another example on how to use this code.

For further information, please visit:

Known issues / Roadmap

  • the code contains some TODOs which should be done

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback here.




Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit

This is a preview of the recently viewed products by the user.
Once the user has seen at least one product this snippet will be visible.

Recently viewed Products