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 see how we can design a quick create kanban form of our choice.
Getting started
For this recipe, we will be using the my_library
module from the previous recipe. We will use the quick create option in kanban for the library.book.rent
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
library.book.rent
model, as follows:<record id="library_book_rent_view_form_minimal" model="ir.ui.view"> <field name="name">Library Rent Form</field> <field name="model">library.book.rent</field...