Adding a quick create form to a Kanban card
Grouped Kanban views provide the quick create feature, which allows us to generate records directly from the Kanban view. The plus icon on a column will display an editable Kanban card on the column, using which you can create a record. In this recipe, we will learn how to design a quick create Kanban form of our choice.
Getting started
For this recipe, we will be using the my_hostel
module from the previous recipe. We will use the quick create option in Kanban for the hostel.room
model.
How to do it...
Follow these steps to add a custom quick create form for Kanban:
- Create a new minimal form view for the
hostel.room
model, as follows:<record id="hostel_room_view_form_minimal" model="ir.ui.view"> Â Â Â Â <field name="name">Hostel room Form</field> Â Â Â Â <field name="model">hostel.room</field> Â Â Â Â ...