This question has been flagged
2295 Views

I want to use attrs to make a field invisible when the value is not the thing I want

attrs="{'invisible':[('value', 'not in', ['test1', 'test2'])]}"

value is a function field that get value from other table. I can show the value by using <field name="value"/> but when I use it as attrs, it makes error

Uncaught Error: Unknown field value in domain [["value","not in",['test1', 'test2']]]

Avatar
Discard