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.


Custom domain filter

on 3/10/15, 9:46 AM 396 views

Hello! In the project/project.py I found such line

'members': fields.many2many('res.users', 'project_user_rel', 'project_id', 'uid', 'Project Members',


I would like to construct a domain expresion which would allow only users who are stored in the members field. But all my attempts where unsuccessful. Can someone show my the correct way?


Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
| 5 3 5
--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 3/11/15, 5:20 AM

Hi, you can use something like:

<field name="user_id" domain="[('id','in',members and members[0][2])]"/>

you can refere to this question for more information ...

I hope this could helps


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

2 follower(s)


Asked: 3/10/15, 9:46 AM
Seen: 396 times
Last updated: 3/16/15, 8:10 AM