Book Image

Odoo Development Essentials

Book Image

Odoo Development Essentials

Overview of this book

Table of Contents (17 chapters)
Odoo Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Design kanban views


First thing is to create a new module adding our kanban views to to-do tasks. In a real-world work, situation using a module for this would probably be excessive and they could perfectly well be added directly in the todo_ui module. But for a clearer explanation, we will use a new module and avoid too many, and possibly confusing, changes in already created files. We will name it todo_kanban and create the usual initial files as follows:

$ cd ~/odoo-dev/custom-addons
$ mkdir todo_kanban
$ touch todo_kanban/__init__.py

Now, edit the descriptor file todo_kanban/__openerp__.py as follows:

{'name': 'To-Do Kanban',
 'description': 'Kanban board for to-do tasks.',
 'author': 'Daniel Reis',
 'depends': ['todo_ui'],
 'data': ['todo_view.xml'] }

Next, create the XML file where our shiny new kanban views will go and set kanban as the default view on the to-do task's window action, as shown in the following:

<?xml version="1.0"?>
<openerp>
  <data>	
    <!-- Add...