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 brand-new view. This view will display the list of authors, along with their books.
For this recipe, we will be using the
my_library module from the previous recipe. Note that views are very complex structures, and each existing 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
many2many field data. In the
my_library module, we have the
author_ids field. Here, we will group books based on authors 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...