Showing kanban cards in columns according to their state
This recipe shows you how to set up a kanban view where the user can drag and drop a record from one column to the other, thereby pushing the record in question into another state.
Getting ready
From now on, we'll make use of the project module here, as this defines models that lend themselves better to date- and state-based views than those defined in the base module. So, before proceeding, add project
to the dependencies list of your add-on.
How to do it...
- Define a kanban view for the tasks:
<record id="kanban_tasks" model="ir.ui.view"> Â Â Â Â <field name="name">project.task.kanban</field> Â Â Â Â <field name="model">project.task</field> Â Â Â Â <field name="sequence">20</field> Â Â Â Â <field name="arch" type="xml"> Â ...