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 hostel 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 base
to the dependencies list of your add-on.
How to do it...
- Define a kanban view for the hostel room category:
<record id="hostel_room_category_view_kanban" model="ir.ui.view"> Â Â Â Â <field name="name">Hostel Room Categories kanban</field> Â Â Â Â <field name="model">hostel.room.category</field> Â Â Â Â <field name="arch" type="xml"> Â Â Â Â Â Â ...