Hello,
In my module I have created some fields and some buttons. It all works ok,
but I want to make a button visible based on two fields. One field is the
state, which is a selection, the second is a boolean. The button should
only be shown when the state is "free" AND the boolean is true.
So I created the button:
'requested': {
'invisible': And(Bool(~Eval('requesting'))
, (Eval('state') == 'free')
),
},
Unfortunately the button shows up in all other states. Checking and
unchecking works only when the state is "free". I tried other things as
well with Equal, Not and Or, but with the same result or worse.
Can anybody shine a light on this?, I'm stuck.
Thanks,
Ed