Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
Odoo

Models in Odoo

Define business objects by inheriting models.Model (or TransientModel/AbstractModel).

Models in Odoo — a practical guide to Odoo models with clear examples you can reuse in real projects.

Odoo Tutorial Series (15/112). Prefer one article? Read the complete Odoo tutorial.

Short description

_name creates a new model; _inherit extends existing ones.

Model sketch

from odoo import models, fields

class LibraryBook(models.Model):
    _name = 'library.book'
    _description = 'Library Book'

    name = fields.Char(required=True)

Leave a reply

Your email address will not be published. Required fields are marked *