Odoo Help


How to give domain ['partner_ids','operator', partner_id]

on 3/4/13, 5:25 AM 4,255 views


As new changes held in new openerp. res.partner represent res.users at some place.

Now when I want to set domain for search that partner_ids have partner_id ,how can I?

Like I have partner_ids and want to check that , these partner_ids have partner_id or not ?

[('partner_ids','in', partner_id)] = not working.

Yug Faa
On 3/4/13, 5:50 AM

When we have a relation one2many we use this :

[('partner_ids','in', [partner_id])]

When we have in search view then ?

on 3/4/13, 5:56 AM

Can you specify the full context, because it's so diffucult to understand your needs, In search view you have to use the same domain on field,

Yug Faa
on 3/4/13, 6:00 AM


on 3/4/13, 7:08 AM

We use this : [('partner_ids','in', [partner_id])] try it. and it means : return users where the partner_id in partner_ids

Yug Faa
on 3/4/13, 7:11 AM

there is an example on task rule : ['|','|','|',('user_id','=',False),('user_id','=',user.id),('project_id.members','in', [user.id]),('project_id.user_id','=',user.id)] so please mark this answered

Yug Faa
on 3/4/13, 7:13 AM

['|',('user_id','=',uid),('partner_ids','in',[partner_id])], this seem ok, but not working well, also instead of in, I try child_of, even together no working well, each one alone works

on 3/4/13, 7:15 AM

If you ask about the operator between partner_id and partner_ids so the syntax is : * [('partner_ids','in', [partner_id])] * else if you ask about a particular case, so you have to explain all the context, the error message, fields instead, ....good luck

Yug Faa
on 3/4/13, 7:47 AM

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

1 follower(s)


Asked: 3/4/13, 5:25 AM
Seen: 4255 times
Last updated: 3/16/15, 8:10 AM