Odoo Help


How to make field readonly based on group and status?

on 9/30/13, 6:54 AM 1,975 views

I want to make field readony based on group, and status.

Like i have two grops 1. Manager Group 2. User Group

If I give User Group to any user then and Status Done then field will be readonly for this user.

Hope I able to make it clear to understand




| 3 2 6
Gandhinagar, India

Having 8+ years of OpenERP Experience. We are Specialized in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.

Skype : acespritech

Email : info@acespritech.com

On 9/30/13, 7:05 AM


<field name="filedname" attrs="{'readonly':[('status','=','done')]}" groups="group_user"/>


I want to make field readonly when user have group of User Group and state is Done, but when same user have group of manager then he will edit this field even if status in Done

on 9/30/13, 7:17 AM

Can you please specify which object's field you are talking about? By default it is not OpenERP functionality, if it is done it you need to configure or customize it(based on requirement).

on 9/30/13, 10:58 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 9/30/13, 6:54 AM
Seen: 1975 times
Last updated: 3/16/15, 8:10 AM