Odoo Help

0

Custom domain filter

By
Andrew
on 3/10/15, 9:46 AM 767 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?

1
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

 

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

Question tools

2 follower(s)

Stats

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