Could you plasese put that that somewhere in the openerp documentation
(for 5.0 and 6.0 series)?
On 08/05/2011 03:37 AM, Raphael Valyi wrote:
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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help : https://help.launchpad.net/ListHelp
--
Pozdrawiam serdecznie,
Jerzy Orłowski
Lacan Technologies Group
Członek Zarządu ds. technologii
Al. Stanów Zjednoczonych 53
04-028 Warszawa
tel. +48 (22) 266 01 02
tel. +48 (22) 292 16 16
kom. 668 151 245
www.lacan.com.pl
www.erpsystems.com.pl
www.serwerownie.com
Lacan Technologies Sp. z o.o. Sąd Rejonowy dla m.st. Warszawy w Warszawie, XIII
Wydział Gospodarczy Krajowego Rejestru Sądowego, KRS: 0000319673, NIP:
521-351-01-01
Kapitał zakładowy: 50.000 PLN
_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help : https://help.launchpad.net/ListHelp