Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have a field which i want to make it readonly for all the user from a group, lets say base.group_userA. any other users will be able to edit and save the field. How do i do that in openerp?. I have already set all CRUD access rights for all users.
'WO_NOTES' : fields.text("Description"),
I had the same problem, only I wanted to show fields only to users in a group. I solved this by inheriting the view and made changes to the specific group.
In your case it should look something like this:
<record model="ir.ui.view" id="view_id">
<field name="inherit_id" ref="id_of_inherited_view"/>
<field name="groups_id" eval="[(6, 0, [ref('base.group_userA') ])]"/>
<field name="arch" type="xml">
<field name="WO_NOTES" position="attributes">
Hope this helps!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/28/14, 3:53 AM|
|Seen: 1929 times|
|Last updated: 3/16/15, 8:10 AM|