EP-6 What are Models in Odoo 18 | What are the Different Types of Models in Odoo 18 | Odoo 18 Videos
In the Odoo framework, "models" are used for structuring and managing data that the Odoo application stores. An Odoo model is a Python class that represents a database table.
Odoo primarily uses three types of models:
1.models.Model (Regular Models):
2.models.TransientModel (Transient Models):
3.models.AbstractModel (Abstract Models):
1. Regular model/standard model
The primary reason for using regular models is to store data that needs to be permanently saved in the database
Supports full ORM features like creating, reading, updating, and deleting record
2. models. TransientModel (Transient Models):
Transient models are used in Odoo for creating wizards. Wizards are interactive dialog boxes .The information entered in a wizard is temporary and only used while the wizard is running.
3. Abstract model
In Odoo, an abstract model acts as a blueprint for other models. It's designed to define common fields and methods that can be shared across multiple models without being directly stored in the database itself.
Imagine you're building an Odoo module for managing various types of documents (invoices, receipts, contracts). Many of these document types will share common fields, such as:
creation_date
created_by
reference
Instead of defining these fields in each individual document model, you can create an abstract model:
Then, your specific document models can inherit from this abstract model:
#Odoo18 #OdooDevelopment #OdooTutorials #OdooModels #OdooTechnical #PythonERP #OpenSourceERP #Odoo18Features #Odoo18Release #OdooProgramming #Odoo18ModelTypes #Odoo18DevelopmentTutorial #Odoo18TechnicalTutorials #Odoo18 #Odoo18Tutorials #Odoo18Development #OdooDevelopment #Odoo18Models #Odoo18ERP #Odoo18NewFeatures #Odoo18Release #OdooTechnicalTutorials #OdooDevelopmentGuide #Odoo18Developer #OdooDeveloper
Connect With Us:
—————————————
➡ ️ Websitehttps://www.cybrosys.com/m/
➡ ️ Email: info@cybrosys.com
➡ ️ Twihttps://twitter.com/cybrosysosys
➡ ️ Lihttps://www.linkedin.com/company/cybrosys/brosys
➡ ️ https://www.facebook.com/cybrosystechnologiesnologies
➡ ️ https://www.instagram.com/cybrosystech/brosystech
➡ https://pinterest.com/cybrosys/ / cybrosys