If you do [('foo_ids', 'in', [id,id2])] on a one2many, it checks
one for
which an in id foo_ids is in (id, id2). So this is what you expect
I guess.
When you do [('foo_ids', '=', id)], I think it also searches for a
one2many containing an id (not sure, to be tested), so this is
also what
you expect.
I didn't know that one, I will test and answer here (currently pretty
busy, but later). Thanks.
As far as I know, the only limitation is that we can not do a ==.
So, I
think this is not possible:
[('foo_ids', '=', [id,id2])]
But I never had a scenario when I needed that. So, unless we have
a real
need, this is not a big issue.
--
Fabien Pinckaers
CEO OpenERP
Chaussée de Namur 40
B-1367 Grand-Rosière
Belgium
Phone: +32.81.81.37.00 <tel:%2B32.81.81.37.00>
Fax: +32.81.73.35.01 <tel:%2B32.81.73.35.01>
Web: http://openerp.com
_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openerp-community
More help : https://help.launchpad.net/ListHelp