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.Many2many('res.partner', string='Authors')
image = fields.Binary(attachment=True)
html_description = fields.Html()