Syntax in views

25 views
Skip to first unread message

Christophe (net)

unread,
Dec 10, 2015, 6:47:44 AM12/10/15
to tryton-dev
Hi,

It seems that the following syntax for the 'states' attribute doesn't
work in 3.8 :

<page string="String" id="string" states="{'invisible':
~Bool(Eval('some_field'))}">

I would have missed something ?

Regards
--
Christophe

Raimon Esteve

unread,
Dec 10, 2015, 6:52:15 AM12/10/15
to tryto...@googlegroups.com
2015-12-10 12:47 GMT+01:00 Christophe (net) <c...@adiczion.net>:
> Hi,
>
> It seems that the following syntax for the 'states' attribute doesn't work
> in 3.8 :
>
> <page string="String" id="string" states="{'invisible':
> ~Bool(Eval('some_field'))}">
>
> I would have missed something ?

1- Remove safe_eval
2- States defined in view_attributes

Example in sale module:

http://hg.tryton.org/modules/sale/rev/4dca378b9142

Regards

Raimon
Reply all
Reply to author
Forward
0 new messages