SlideShare a Scribd company logo
Module Structure
in Odoo 15
www.cybrosys.com
INTRODUCTION
 In odoo a module comprises with different components such as models, views, security
etc…
 In this slide describes the module structure
There are mainly four files required for creating a new module (.py or .xml can be excluded
as per the need).
The main four files are.
In the __init__.py file, we have to import all the python files that we are going to use.
We have a python file called model.py in our module. The first thing we have to do
is, import the model.py in the __init__.py file.
__init__.py
In the __manifest__.py, We have to mention the module name, the author name,
version, description, company, category, etc.
__manifest__.py
name - Name of the record
description - Brief description of the module
version- Specify the version of the module
license - Specify the distribution license of the module
author - Author name of the module
website - Website URL of the module author
category - Specify the category name
depends - Specifies a list of modules which install first before installing the module
data - List of the data files which are always installed or updated with the module
demo - List of the data files which are installed or updated in active demonstration mode
Models
Here we can declared the business objects. It also contains an ‘__init__.py’ and ‘models.py’ file.
‘__init__.py’ file which loads the ‘models.py’ file. Here we can add more functionality and new
features to our business.
● The view directory contains .xml files.
● To display fields, buttons, or view of any model we use XML.
● We have different types of views in Odoo like form view, tree view, kanban
view, etc. Templates are also .xml files. We use a template to create web
pages and QWEB reports .
Views
Module Structure in Odoo 15
Controllers
 The controller directory also contains .py files.
 In Odoo controller is a python class that is derived from the base class.
 Controllers are used to creating APIs, requests like GET and POST and to connect external
applications like PHP, Android, and iOS using XML-RPC.
Static
 Static directory is not available in your newly created module, you can create this one manually. This
directory contains two sub-directories.
1. Description
2. Src
Description
 Description directory contains the icons banners and index.html files
Src
 Src contains all our images, js and CSS files
 scss - add one or more scss files for apply style
 css - add one or more css files for apply style
 img - add images which are used in the module
 js - contains one or more js files
Security
 Security folder contains only one CSV file named ir.model.access.csv.
 This folder has another file to creating record rules (.xml file).
 ir.model.access.csv - giving access control or permission to users for particular model
 security.xml - used to create record rules
Data
 Module data declared via data files, XML field with <record> element
For More
Details
Check our company website for related blogs and Odoo
book.
Odoo Book V15
Check our YouTube channel for functional and technical
videos in Odoo.
Module Structure in Odoo 15
Module Structure in Odoo 15
Thank You

More Related Content

PPTX
Odoo 15 Composition of Module
PPTX
Composition of a Module in Odoo 16
PPTX
How to Build a Module in Odoo 15 Scaffold Method
PPTX
Module Structure in Odoo 16
PPTX
Odoo (Build module, Security, ORM)
PPTX
Demonstration module in Odoo 17 - Odoo 17 Slides
PPTX
External dependencies ,pre init hook &amp; post init hook in odoo
PPTX
How to Create a Basic Module in Odoo 17 - Odoo 17 Slides
Odoo 15 Composition of Module
Composition of a Module in Odoo 16
How to Build a Module in Odoo 15 Scaffold Method
Module Structure in Odoo 16
Odoo (Build module, Security, ORM)
Demonstration module in Odoo 17 - Odoo 17 Slides
External dependencies ,pre init hook &amp; post init hook in odoo
How to Create a Basic Module in Odoo 17 - Odoo 17 Slides

Similar to Module Structure in Odoo 15 (20)

PPTX
Tips On Trick Odoo Add-On.pptx
PPTX
Building a Module in Odoo 16
PPTX
Tips On Trick Odoo Add-On.pptx
PPTX
Post init hook in the odoo 17 ERP Module
PPTX
How to Create Manifest File in Odoo 17 ERP
PPTX
How to Install Custom Module in Odoo 17 - Odoo 17 Slides
PPTX
Yii in action
PPT
Mageguru - magento custom module development
PPTX
Data Files In Odoo 16
PPTX
Drupal8 corporate training in Hyderabad
PPTX
Python module 3, b.tech 5th semester ppt
DOC
Apps tech bootcamp_descriptions
PPT
Beginner's guide to drupal
PPT
Python modules
PPT
YSlow 2.0
PPT
DJango
PPTX
Sahil_18118_IOT-ppt.pptx
PDF
Rapid web application development using django - Part (1)
PPTX
Security, Groups, and Access Rights in Odoo 17
PDF
Uploading files using selenium web driver
Tips On Trick Odoo Add-On.pptx
Building a Module in Odoo 16
Tips On Trick Odoo Add-On.pptx
Post init hook in the odoo 17 ERP Module
How to Create Manifest File in Odoo 17 ERP
How to Install Custom Module in Odoo 17 - Odoo 17 Slides
Yii in action
Mageguru - magento custom module development
Data Files In Odoo 16
Drupal8 corporate training in Hyderabad
Python module 3, b.tech 5th semester ppt
Apps tech bootcamp_descriptions
Beginner's guide to drupal
Python modules
YSlow 2.0
DJango
Sahil_18118_IOT-ppt.pptx
Rapid web application development using django - Part (1)
Security, Groups, and Access Rights in Odoo 17
Uploading files using selenium web driver
Ad

More from Celine George (20)

PPTX
How to Implement OWL Notification Service in Odoo 18
PPTX
Tracking Profit Margins in Sales Orders with Odoo 18
PPTX
How to Configure Outgoing Shipment in 3 Steps Using Odoo 18
PPTX
How to Configure Outgoing Shipment in 1 Step Using Odoo 18.pptx
PPTX
How to Configure Outgoing Shipment in 2 Steps Using Odoo 18
PPTX
How to Add New Applicants in Odoo 18 Recruitment
PPTX
How to Analyze the Recruitment Process in Odoo 18 Recruitment
PPTX
How to Manage Referral Reporting in Odoo 18 Referrals
PPTX
How to Set, Track, & Review Employee Goals in Odoo 18 Appraisals
PPTX
Revamp in MTO Odoo 18 Inventory - Odoo Slides
PPTX
How to Manage Starshipit in Odoo 18 - Odoo Slides
PPTX
How to Manage Bill Control Policy in Odoo 18
PPTX
How to Manage Loyalty Points in Odoo 18 Sales
PPTX
Odoo 18 Sales_ Managing Quotation Validity
PPTX
How to Manage Global Discount in Odoo 18 POS
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
How to Implement OWL Notification Service in Odoo 18
Tracking Profit Margins in Sales Orders with Odoo 18
How to Configure Outgoing Shipment in 3 Steps Using Odoo 18
How to Configure Outgoing Shipment in 1 Step Using Odoo 18.pptx
How to Configure Outgoing Shipment in 2 Steps Using Odoo 18
How to Add New Applicants in Odoo 18 Recruitment
How to Analyze the Recruitment Process in Odoo 18 Recruitment
How to Manage Referral Reporting in Odoo 18 Referrals
How to Set, Track, & Review Employee Goals in Odoo 18 Appraisals
Revamp in MTO Odoo 18 Inventory - Odoo Slides
How to Manage Starshipit in Odoo 18 - Odoo Slides
How to Manage Bill Control Policy in Odoo 18
How to Manage Loyalty Points in Odoo 18 Sales
Odoo 18 Sales_ Managing Quotation Validity
How to Manage Global Discount in Odoo 18 POS
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Tips Management in Odoo 18 POS - Odoo Slides
How to Close Subscription in Odoo 18 - Odoo Slides
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
How to Track Skills & Contracts Using Odoo 18 Employee
Ad

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Pharma ospi slides which help in ospi learning
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Lesson notes of climatology university.
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Cell Structure & Organelles in detailed.
Pharmacology of Heart Failure /Pharmacotherapy of CHF
human mycosis Human fungal infections are called human mycosis..pptx
PPH.pptx obstetrics and gynecology in nursing
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
GDM (1) (1).pptx small presentation for students
Anesthesia in Laparoscopic Surgery in India
Pharma ospi slides which help in ospi learning
01-Introduction-to-Information-Management.pdf
Lesson notes of climatology university.
Supply Chain Operations Speaking Notes -ICLT Program
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Microbial disease of the cardiovascular and lymphatic systems
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
STATICS OF THE RIGID BODIES Hibbelers.pdf
Sports Quiz easy sports quiz sports quiz
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx

Module Structure in Odoo 15

  • 1. Module Structure in Odoo 15 www.cybrosys.com
  • 2. INTRODUCTION  In odoo a module comprises with different components such as models, views, security etc…  In this slide describes the module structure
  • 3. There are mainly four files required for creating a new module (.py or .xml can be excluded as per the need). The main four files are.
  • 4. In the __init__.py file, we have to import all the python files that we are going to use. We have a python file called model.py in our module. The first thing we have to do is, import the model.py in the __init__.py file. __init__.py
  • 5. In the __manifest__.py, We have to mention the module name, the author name, version, description, company, category, etc. __manifest__.py
  • 6. name - Name of the record description - Brief description of the module version- Specify the version of the module license - Specify the distribution license of the module author - Author name of the module website - Website URL of the module author category - Specify the category name depends - Specifies a list of modules which install first before installing the module data - List of the data files which are always installed or updated with the module demo - List of the data files which are installed or updated in active demonstration mode
  • 7. Models Here we can declared the business objects. It also contains an ‘__init__.py’ and ‘models.py’ file. ‘__init__.py’ file which loads the ‘models.py’ file. Here we can add more functionality and new features to our business.
  • 8. ● The view directory contains .xml files. ● To display fields, buttons, or view of any model we use XML. ● We have different types of views in Odoo like form view, tree view, kanban view, etc. Templates are also .xml files. We use a template to create web pages and QWEB reports . Views
  • 10. Controllers  The controller directory also contains .py files.  In Odoo controller is a python class that is derived from the base class.  Controllers are used to creating APIs, requests like GET and POST and to connect external applications like PHP, Android, and iOS using XML-RPC. Static  Static directory is not available in your newly created module, you can create this one manually. This directory contains two sub-directories. 1. Description 2. Src
  • 11. Description  Description directory contains the icons banners and index.html files Src  Src contains all our images, js and CSS files  scss - add one or more scss files for apply style  css - add one or more css files for apply style  img - add images which are used in the module  js - contains one or more js files
  • 12. Security  Security folder contains only one CSV file named ir.model.access.csv.  This folder has another file to creating record rules (.xml file).  ir.model.access.csv - giving access control or permission to users for particular model  security.xml - used to create record rules Data  Module data declared via data files, XML field with <record> element
  • 13. For More Details Check our company website for related blogs and Odoo book. Odoo Book V15 Check our YouTube channel for functional and technical videos in Odoo. Module Structure in Odoo 15