Odoo Help


This community 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.


How to set field value based on user group?

Diego Calzadilla
on 1/12/16, 12:52 AM 322 views


I have the following requirement: Let's say I have a group of users 'A' and a field 'foo', if a user belongs to group 'A' then 'foo' should be equal to zero, any other user not belonging to group 'A' should see the real 'foo' value.

Does anyone know how to achieve this?

Thanks in advance!

Maurice Agée
On 1/12/16, 11:29 AM

Rather than change the value must display or not display depending on the group

Like this

field name="foo" attrs="{'invisible':[('user','=',"A")]}" name="foo">

So I guess the value 'foo' is involved in a calculation. We must therefore change the calculation according to the group. please, be more specific.

Maurice Agée
on 1/12/16, 11:51 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 1/12/16, 12:52 AM
Seen: 322 times
Last updated: 1/12/16, 11:29 AM