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

-- 
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/

Attachment: pgpR25yRkqfAs.pgp
Description: PGP signature

Reply via email to