Technical requirements
In this chapter, we will look at all 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:
import logging from odoo import api, fields, models from odoo.exceptions import UserError from odoo.tools.translate import _ _logger = logging.getLogger(__name__) class HostelRoom(models.Model): _name = 'hostel.room' _description = "Information about hostel Room" name = fields.Char(string="Hostel Name", required=True) room_no = fields.Char(string="Room Number", required=True) other_info = fields.Text("Other Information", help="...