Skip to Content
Odoo Development Cookbook
book

Odoo Development Cookbook

by Holger Brunn, Alexandre Fayolle, Daniel Reis
April 2016
Beginner to intermediate content levelBeginner to intermediate
400 pages
9h 16m
English
Packt Publishing
Content preview from Odoo Development Cookbook

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...

  1. 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>
  2. List the fields you're going to use in your view:
                <field name="name" />
                <field name="supplier" />
                <field name="customer" />
    
  3. Do some design:
     <templates> <t t-name="kanban-box"> <div class="oe_kanban_card"> <a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Odoo Development Cookbook - Fifth Edition

Odoo Development Cookbook - Fifth Edition

Husen Daudi, Jay Vora, Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis
Odoo 14 Development Cookbook - Fourth Edition

Odoo 14 Development Cookbook - Fourth Edition

Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis
Odoo 12 Development Cookbook - Third Edition

Odoo 12 Development Cookbook - Third Edition

Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis

Publisher Resources

ISBN: 9781785883644Supplemental Content