Showing a field only in edit mode

If you need to show a field only in edit mode you would need to use the class oe_edit_only. In the example below the field “content“, will be shown only when the form view is in edit mode

<field name="content" widget="html" class="oe_edit_only" />
Share the knowledge!

Leave a Reply

Your email address will not be published. Required fields are marked *