Home › Curriculum › Odoo Developer › Form, list, kanban and search views
Views, actions, reports and OWL · 18 min · 17–20Form, list, kanban and search views
Writing view architectures: form layout, list options, kanban cards, search filters, and Odoo 17+ attribute expressions.
In this lesson
- Form views: header, sheet, chatter, widgets, buttons
- Odoo 17+ expressions and Odoo 18 list views
- Kanban and search views
Key points
- ir.ui.view arch: form with header, sheet, notebook, <chatter/> (18+)
- Odoo 17+: invisible/readonly/required expressions replace attrs/states
- Odoo 18: <list> replaces <tree>; decorations, optional, editable
- Kanban card templates; search filters, group-bys, searchpanel
Real-world example
A module written for Odoo 16 failed to install on 18 with 'Since 17.0, the "attrs" and "states" attributes are no longer used'. The developer converted 140 attrs with an OCA migration helper script, then reviewed each by hand; the views worked on 18 and later on 19 and 20.
Questions and answers
Which widget shows a Many2many as coloured tags?
many2many_tags
What does optional="hide" on a list column do?
The column is hidden by default but users can show it.