I am trying to make a field in my form view visible only in read mode. I'm using the following code:
models.py
test_field = fields.Char(string="Test Field")
view.xml
<field name="test_field" class="oe_read_only"/>
However, the field still shows in edit mode. I only want it to appear in read mode. What am I doing wrong?
Reference: https://stackoverflow.com/a/38238138
"oe_read_only" works fine in v13 and v14 as well.