Getting ready

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 add a new record of the book. We will also add a button on the author's card, so that we can redirect users to another view.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset