December 2018
Beginner to intermediate
404 pages
10h 14m
English
The main content of the form should be organized using <group> tags.
The <group> tag inserts two columns in the canvas. Inside it, by default, fields will be displayed along with their label, hence taking up the two columns. So, a field plus its label takes up a line; the next field and label will take the next line, and they'll be stacked up vertically.
A common pattern in Odoo forms is to have two columns of fields with labels, side by side. To achieve that, we just need to add two <group> tags nested into a top one.
Continuing with our form view, we'll use this to add the main content, after the title <div> section:
<group name="group_top"> <group name="group_col1"> <field name="user_id" /> <field name="checkout_date" ...
Read now
Unlock full access