Models
- Membuat model baru:
class Pelayanan(models.Model):
_name = 'pdl.kab.pelayanan'
name= fields.String(string='Uraian',
help="Check if the contact is a hotel, otherwise it is non hotel")
- Membuat model turunan:
class ResPartner(models.Model):
_name = 'res.partner'
_inherit = 'res.partner'
is_hotel = fields.Boolean(string='Is a Company', default=False,
help="Check if the contact is a hotel, otherwise it is non hotel")
Penjelasan lebih lanjut bisa dilihat di https://www.odoo.com/documentation/15.0/developer/reference/backend/orm.html