On 11/02/12 14:29 +0100, Albert Cervera i Areny wrote:
> A Divendres, 10 de febrer de 2012 22:11:03, Felipe Alvarez Harnecker va
> escriure:
> > Hi,
> >
> > i'm trying to do something like
> >
> > <field name="producto"
> >
> > domain="If(Equal(Eval('tipo'),'servicio'),[('type','=','service')],[('type'
> > ,'!=','service')])"/>
> >
> > that fails. How is the right way to do this in tryton?
>
> You should do that in the field definition:
>
> http://doc.tryton.org/2.2/trytond/doc/ref/models/fields.html#domain
Yes indeed there are some XML attributes that are no more used.
I create an issue to clean them:
https://bugs.tryton.org/issue2454
--
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/
pgpxDLDimrY1y.pgp
Description: PGP signature
