Technical requirements
In this chapter, we will look at all of the test cases in detail. In order to cover all of the test cases in a single module, we have created a small module. Its Python definition is as follows:
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') state = fields.Selection( [('draft', 'Not Available'), ('available', 'Available'), ('lost', 'Lost')], 'State', default="draft...