If you are Odoo implementer, you may come across the request from the customer to make some sensitive fields non-editable for certain user groups. Entrivis Tech has developed the module which provides such a feature.
You just need basic knowledge of fields.
First of all, you need to go to the company form view. You will find a new tab called Restricted Fields.
Here you can select the fields for which you want to restrict the access. We have taken the price unit field in the Sales Order line in this example. You may select multiple fields here.
To check how it works, let's go to the sales quotation. When you create a new quotation and add a product, the system will not allow you to edit the Unit Price field. Check the image:
Now what if you want to allow some users to edit the product price in the quotation. Go to the form view of the user, with debug/developer mode enabled.
There you will find a check box ‘Allow Restricted Fields’. Check it for the user in order to grant the permission to edit the unit price in the quotation.
Now that we have ticked the box, the user will be able to edit the unit price. Refresh the browser and create a quotation to check.
With this module, you can restrict any fields to be edited in Odoo 12 & Odoo 13 and allow to edit for certain users. It can be helpful for the users and the implementers. It is easy to configure, simple yet effective!