In website development projects, it is often the case that we need to create pages with dynamic URLs. For example, in e-commerce, each product has a detailed page with a different URL. In this recipe, we will create a web page to display the book details.
Managing dynamic routes
Getting ready
We will be using the my_library module from the previous recipe. To make a book detail page attractive, we will need to add a few new fields. Please add the following two new fields in the library.book model and form a view, like this:
class LibraryBook(models.Model):
_name = 'library.book'
name = fields.Char('Title', required=True)
date_release = fields.Date('Release Date')
author_ids = fields...