EP-7 How to Create a Model in Odoo 18 | How to Define a Model in Odoo 18 | Odoo 18 Technical Videos – CBMS Odoo ERP

EP-7 How to Create a Model in Odoo 18 | How to Define a Model in Odoo 18 | Odoo 18 Technical Videos – CBMS Odoo ERP

2
0 minutes, 59 seconds Read

Creating a model in Odoo 18 involves defining a new database structure to represent your business data and creating corresponding views for user interaction. Here’s a step-by-step guide to help you through the process:

1. Set Up Your Module Structure

Begin by creating a new module to house your custom model. This approach ensures that your customizations remain modular and maintainable.

Create the Module Directory: Navigate to your Odoo addons directory and create a new folder for your module, e.g., college_erp.

Initialize the module: Inside this folder, create the following files and directories:

college_erp/
├── __init__.py
├── __manifest__.py
└── models/
├── __init__.py
└── college_student.py
2. Define Your Model

In the college_student.py file, define your model by creating a Python class that inherits from models. Model:

from odoo import models, fields

class collegestudent(models.Model):
_name = college.student# Model identifier
_description = ‘College Student’

#Odoo18 #OdooDevelopment #OdooTutorial #CreateModel #DefineModel #OdooTechnical #ERP #OpenSourceERP #OdooNewFeatures #OdooReleaseDate #Programming #Python #Odoo18 #Odoo18DevelopmentTutorials #Odoo18Tutorial #Odoo18NewFeatures #OdooTechnical #OdooPython #Odoo18ReleaseDate #OdooModel #OdooERP #Odoo18Development #Odoo18TechnicalTutorials #OdooTechnical

Connect With Us:
—————————————
➡️ Website:
➡️ Email: info@cybrosys.com
➡️ Twitter:
➡️ LinkedIn:
➡️ Facebook:
➡️ Instagram:
➡️ Pinterest:

#EP7 #Create #Model #Odoo #Define #Model #Odoo #Odoo #Technical #Videos

Similar Posts

2 Comments on EP-7 How to Create a Model in Odoo 18 | How to Define a Model in Odoo 18 | Odoo 18 Technical Videos – CBMS Odoo ERP

  1. avatar
    @lifeisgreat11 says:

    Thanks for this great tutorial. I cant imagine how much effort you put into the preparation and curation of this.
    I have a question, not sure if I miss it somehow, but what version of odoo are you using, community or enterprise one? Thanks again.

Comments are closed.