On 16/04/13 22:33 +0200, Albert Cervera i Areny wrote:
> A Dimarts, 16 d'abril de 2013 17:33:37, Cédric Krier va escriure:
> > On 16/04/13 08:25 -0700, Jesús Martín Jiménez wrote:
> > > Is there any way in Tryton to chaining browse on domain like in OpenERP?
> >
> > Quite funny as I wrote this feature in OpenERP :-)
> >
> > > For example, if I wanted to filter by the value of a many2one field, I'll
> > > do it this way:
> > >
> > > domain = [('field_id.name', '=', 'value')]
> >
> > So yes, you can do it for M2O and also for M2M, O2M, O2O
> > and Reference (only 1 level)
>
> You mean 1 level only for Reference fields, don't you? I thought at least M2O
> allows any number of levels.Yes but indeed it is one level of reference field but it could be composed by others one. And I think it will be doable to remove the limit but it will be simplier with python-sql. -- 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/
pgpzNEXKCaDNU.pgp
Description: PGP signature
