The abstract model serves as the base class for all Odoo models
intended to be stored in the database. All Odoo models are defined
by inheriting from this class. It offers a core structure and shared
features for database-stored entities, supporting a consistent and
efficient method for building and managing models in Odoo.
from odoo import models, fields
class AbstractModelExample(models.AbstractModel):
_name = "model.name"
field = fields.Char(string="Field Label")