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
--
Albert Cervera i Areny
http://www.NaN-tic.com
Tel: +34 93 553 18 03
http://twitter.com/albertnan
http://www.nan-tic.com/blog
--
[email protected] mailing list