Creating a new view
As you saw in Chapter 9, Backend Views, there are different kinds of views, such as form, list, and kanban. In this recipe, we will create a new view. This view will display the list of rooms, along with their students.
Getting ready
For this recipe, we will be using the my_hostel
module from the previous recipe. Note that views are very complex structures, and each view has a different purpose and implementation. The purpose of this recipe is to make you aware of the MVC
pattern view and how to create simple views. In this recipe, we will create a view called m2m_group
, the purpose of which is to display records in groups. To divide records into different groups, the view will use the many2x
field data. In the my_hostel
module, we have the room_id
field. Here, we will group students based on room and display them in cards.
In addition, we will add a new button to the control panel. With the help of this button, you will be able to add a new student record...