On 15/12/10 09:03 +0100, Cédric Krier wrote: > On 14/12/10 13:52 -0800, Ian Wilson wrote: > > I am still trying to find a way to do this generically. Maybe it is not > > possible though. > > > > My model looks like this -- http://paste.pocoo.org/show/304929/ > > > > I want to search for all products that are linked to a feature with a > > certain name. Something like > > > > product_obj = self.pool.get('product.product') > > product_ids_with_example_feature = product_obj.search([(' > > features.feature.name', 'ilike', '%example%')]) > > > > I would imagine that a SQL JOIN of some sort would be necessary but maybe it > > is impossible to make such a thing generic, if so what is a good strategy to > > solve this problem? > > It should work since 1.8
Indeed, it doesn't work on any versions. It works only on trunk since the One2One patch. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpIZaetgJBbe.pgp
Description: PGP signature
