This question has been flagged
1 Reply
4516 Views

Is it possible? What i currently using on field attrs is {'invisible':[('x_rwis','=','a')]} I want more than 1 (a,b,c,d) value to be the trigger of the invisible field. Can I? I'm using developers mode and manage views to edit the OpenERP.

Avatar
Discard
Best Answer

Hi Fransis,

Its a so simple,

Try Following

{'invisible':[('x_rwis','in',['a','b','c','d'])]}

Hope it work for you.

Avatar
Discard
Author

wow thanks sir, it's worked. Can I ask 1 more question sir? by default selection is chosing " " (blank as the value), if I want to set invisible when that selection is choosen (the blank ones), what must I insert on the attrs? I've tried to insert ' ' (with one space) but it wont worked.

Try {'invisible':[('x_rwis','not in',['a','b','c','d'])]} and please mark my answer as solved if your problem is solved. Thanks.. :)

Author

thanks very much. It worked!