Re: [tryton-dev] Search Many2Many

2010-12-15 Thread Cédric Krier
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 prod

Re: [tryton-dev] Search Many2Many

2010-12-15 Thread Cédric Krier
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. S

Re: [tryton-dev] Search Many2Many

2010-12-14 Thread Ian Wilson
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.produ

Re: [tryton-dev] Search Many2Many

2010-01-16 Thread Ian Wilson
Well I don't think I know how child_of works either. Can someone show me some example usage? Preferable an example that doesn't use self-referencing because there seems to be a ton of those. Ie. categories of categories, company of companies On Sat, Jan 16, 2010 at 2:13 PM, Cédric Krier wrote:

Re: [tryton-dev] Search Many2Many

2010-01-16 Thread Cédric Krier
On 16/01/10 14:07 -0800, Ian Wilson wrote: > Hi, > > Maybe I overlooked something but does the search method work for > many2many relationships? If so what is the syntax? It does not seem > to be covered in > http://doc.tryton.org/1.4/trytond/doc/models.html#search-clauses. If > search does not

[tryton-dev] Search Many2Many

2010-01-16 Thread Ian Wilson
Hi, Maybe I overlooked something but does the search method work for many2many relationships? If so what is the syntax? It does not seem to be covered in http://doc.tryton.org/1.4/trytond/doc/models.html#search-clauses. If search does not work for Many2Many a strategy should at least be explaine