Labels for fields

The <label> element can be used to better control the presentation of a field label. One case where this is used is to present the label only when the form is in edit mode:

<label for="name" class="oe_edit_only" /> 

When doing this, if the field is inside a <group> element, we usually want to also set nolabel="True" on it.

Get Odoo 11 Development Essentials - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.