Book Image

Odoo Development Cookbook

By : Holger Brunn, Alexandre Fayolle, Daniel Reis
Book Image

Odoo Development Cookbook

By: Holger Brunn, Alexandre Fayolle, Daniel Reis

Overview of this book

Odoo is a full-featured open source ERP with a focus on extensibility. The flexibility and sustainability of open source is also a key selling point of Odoo. It is built on a powerful framework for rapid application development, both for back-end applications and front-end websites. The book starts by covering Odoo installation and administration, and provides a gentle introduction to application development. It then dives deep into several of the areas that an experienced developer will need to use. You’ll learn implement business logic, adapt the UI, and extend existing features.
Table of Contents (23 chapters)
Odoo Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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 type="open">
                                <field name...