Kanban views
Up until now, we have presented the user with a list of records that can be opened to show a form. While those lists are efficient when presenting a lot of information, they tend to be rather dull given the lack of design possibilities. In this recipe, we'll have a look at kanban views, which allow us to present lists of records in a more appealing way.
How to do it...
Define a view of type kanban:
<record id="kanban_all_customers" model="ir.ui.view"> <field name="model">res.partner</field> <field name="arch" type="xml"> <kanban>
List the fields you're going to use in your view:
<field name="name" /> <field name="supplier" /> <field name="customer" />
Do some design:
<templates> <t t-name="kanban-box"> <div class="oe_kanban_card"> <a type="open"> <field name...