- 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'll 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="name" /> </a> <t t-if="record.supplier.raw_value or record.customer.raw_value"> is <t t-if="record.customer.raw_value"> a customer <t t-if="record.supplier.raw_value"> and </t> </t> <t t-if="record.supplier.raw_value"> a supplier </t> </t> </div> </t> </templates>
- Close all the tags:
</kanban> </field> </record>
- Add this view to one of your actions. This is left as an exercise for the reader.