SlideShare a Scribd company logo
Composition of
Module in Odoo 15
www.cybrosys.com
INTRODUCTION
This slide describes the various components of an odoo module. It discusses controllers, data,
docs, translations, reports, security, static files and folders, unit tests, views, and wizards.
❖ An Odoo module contains a number of elements, Each module build as a technical
name, here it is named as ‘my_module’. When we open the ‘my_module’ directory in the
pycharm we can see many more folders.
❖ Each module contains required python files, they are ‘__init__.py’ and ‘__manifest__.py’
file.
❖ __init__.py
In the __init__.py file, we have to import all the python files that we are going to use. Suppose
as described above 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.So our __init__.py file will be like this,
➢ __manifest__.py
In the __manifest__.py, We have to mention the module name, the author name, version,
description, company, category, etc. Now let us see what all these things for,
* Name – Name of the module to be displayed.
Version – version of the released module.
* Summary – Summary for the module.
* Category – Category of the module, whether it is sales, purchase, the point of sale etc.
* depends – Suppose if our module depends on any other modules, we have to mention that
name in the depends. As we are going to create a new module and as it is not depending on
any other modules, just add depends as the base.
* data – In the data section, we have to specify all the .xml files here. In our case, we have to
mention the view.xml
❖ So our __manifest__.py file will be like this,
,
❖ Then Let’s discuss about each components,
➢ Controllers : It is web controllers, which is used for the front-end and back-end of the
action views. And it requests from the web browsers, Inside the controllers we can see
the ‘__init__.py’ file and ‘controllers.py’ file. In the ‘__init__.py’ file it will load or import
the ‘controllers.py’. And the ‘controllers.py’ file which render the request to show the
website.
 demo : Here we have to add ‘demo.xml’ file, which are loaded in the demonstration mode.
For eg, If we need to load a contact details while we installing the module those contact
details can be added in the ‘demo.xml’ file. So, the ‘demo.xml’ file uploaded while we
installing the module.
➢ doc: Here we have to add like ‘.pdf’, ‘.txt’ file. Here we can update documents related to
this module.
➢ i8n: This is for internationalization, it can be user to add translation to your modules. It
consist of ‘.po’ file, For eg, If the user is using arabic language, he needs its fields, labels or
things in arabic, we can load the fields name in arabic in the ‘.po’ files. And ‘po’ can be
obtained by exporting the custom modules.
joijjjjj
➢ 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.
➢ reports: All the files that relate to reports will be included in the report directory. We can create
different reports in Odoo. A report contains 2 elements:
ir.actions.report: which defines different parameters for the report.
Qweb view: We can render the reports using different elements in qweb.
The reports directory also contains a ‘__init__.py’ and python file named as ‘reports.py’ file. And
the ‘__init__.py’ file also load the ‘reports.py’ file in the report.
 security: All security-related files are included in this directory. We can create
different users and can set permissions to them separately. Here we have ‘.xml’ and
‘csv’ files. In the csv files we can add the access right for the users. We can allow the
permission for read,write,create and unlink for each and every user. also possible to
set different rules for security in the ‘security.xml’ file.
 static: All web assets are included in the status directory. We have an src directory inside the
static directory. JS, CSS, SCSS, img, and many more are the different files for the web
interface, these are defined corresponding directories like JS, CSS, SCSS, img, and many
more under the src directory.
 In Odoo 15 the assets paths will be added on the __manifest__.py.
➢ tests: If the module needed any test cases, those test cases can be added at here
➢ views: Views directory contains XML files for views and templates. Views are the
visualization of records. We can define views for how to display the records for the end-user.
The developer can also do different customization in views. Here we can add ‘.xml’ file. There
are different view types in Odoo such as, tree, form, activity, kanban, and many more.
 wizard: Which contains the interactive section with dialogue boxes in odoo. And here it shows
the pop-up like in odoo UI. It also contain ‘__init__.py’ and ‘wizard.py’ file.
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.
Composition of Module in Odoo 15
Odoo 15 Composition of Module
Thank You

More Related Content

PPTX
Vespa mindset assembley
PPTX
NIC 12 Leo.ppt.pptx
PPT
Iva powerpoint
DOC
Plan comptable détaillé
DOCX
Société anonyme
PPTX
Composition of a Module in Odoo 16
PPTX
Module Structure in Odoo 16
PPTX
Module Structure in Odoo 15
Vespa mindset assembley
NIC 12 Leo.ppt.pptx
Iva powerpoint
Plan comptable détaillé
Société anonyme
Composition of a Module in Odoo 16
Module Structure in Odoo 16
Module Structure in Odoo 15

Similar to Odoo 15 Composition of Module (20)

PPTX
Odoo (Build module, Security, ORM)
PPTX
How to Build a Module in Odoo 15 Scaffold Method
PPTX
How to Build Custom Module in Odoo 15
PPTX
Demonstration module in Odoo 17 - Odoo 17 Slides
PPTX
Tips On Trick Odoo Add-On.pptx
PPTX
How to Create a Basic Module in Odoo 17 - Odoo 17 Slides
PDF
How to Start Developing Modules in Odoo.pdf
PPTX
Tips On Trick Odoo Add-On.pptx
PPTX
How to Create Manifest File in Odoo 17 ERP
PPT
Odoo website themes
PPTX
Building a Module in Odoo 16
DOC
Odoo 12 index
PDF
How to Create PDF Report in Odoo 15
PPTX
Instal custom modules in odoo
PDF
Step-by-Step Guide of Creating a Custom Module in Odoo
PPTX
Building A Website - URLs and routing
PPTX
Client Actions In Odoo 17 - Odoo 17 Slides
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
PDF
Odoo development
PPTX
How to add menu in Odoo 17 Website - Odoo 17 Slides
Odoo (Build module, Security, ORM)
How to Build a Module in Odoo 15 Scaffold Method
How to Build Custom Module in Odoo 15
Demonstration module in Odoo 17 - Odoo 17 Slides
Tips On Trick Odoo Add-On.pptx
How to Create a Basic Module in Odoo 17 - Odoo 17 Slides
How to Start Developing Modules in Odoo.pdf
Tips On Trick Odoo Add-On.pptx
How to Create Manifest File in Odoo 17 ERP
Odoo website themes
Building a Module in Odoo 16
Odoo 12 index
How to Create PDF Report in Odoo 15
Instal custom modules in odoo
Step-by-Step Guide of Creating a Custom Module in Odoo
Building A Website - URLs and routing
Client Actions In Odoo 17 - Odoo 17 Slides
How to Create a PDF Report in Odoo 18 - Odoo Slides
Odoo development
How to add menu in Odoo 17 Website - Odoo 17 Slides
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)

PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Cell Structure & Organelles in detailed.
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
Institutional Correction lecture only . . .
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Basic Mud Logging Guide for educational purpose
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Pre independence Education in Inndia.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
PPH.pptx obstetrics and gynecology in nursing
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
VCE English Exam - Section C Student Revision Booklet
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Cell Structure & Organelles in detailed.
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
RMMM.pdf make it easy to upload and study
Institutional Correction lecture only . . .
2.FourierTransform-ShortQuestionswithAnswers.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Complications of Minimal Access Surgery at WLH
Final Presentation General Medicine 03-08-2024.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Basic Mud Logging Guide for educational purpose
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Sports Quiz easy sports quiz sports quiz
Insiders guide to clinical Medicine.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Pre independence Education in Inndia.pdf
Classroom Observation Tools for Teachers
PPH.pptx obstetrics and gynecology in nursing

Odoo 15 Composition of Module

  • 1. Composition of Module in Odoo 15 www.cybrosys.com
  • 2. INTRODUCTION This slide describes the various components of an odoo module. It discusses controllers, data, docs, translations, reports, security, static files and folders, unit tests, views, and wizards.
  • 3. ❖ An Odoo module contains a number of elements, Each module build as a technical name, here it is named as ‘my_module’. When we open the ‘my_module’ directory in the pycharm we can see many more folders.
  • 4. ❖ Each module contains required python files, they are ‘__init__.py’ and ‘__manifest__.py’ file. ❖ __init__.py In the __init__.py file, we have to import all the python files that we are going to use. Suppose as described above 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.So our __init__.py file will be like this,
  • 5. ➢ __manifest__.py In the __manifest__.py, We have to mention the module name, the author name, version, description, company, category, etc. Now let us see what all these things for, * Name – Name of the module to be displayed. Version – version of the released module. * Summary – Summary for the module. * Category – Category of the module, whether it is sales, purchase, the point of sale etc.
  • 6. * depends – Suppose if our module depends on any other modules, we have to mention that name in the depends. As we are going to create a new module and as it is not depending on any other modules, just add depends as the base. * data – In the data section, we have to specify all the .xml files here. In our case, we have to mention the view.xml
  • 7. ❖ So our __manifest__.py file will be like this,
  • 8. , ❖ Then Let’s discuss about each components, ➢ Controllers : It is web controllers, which is used for the front-end and back-end of the action views. And it requests from the web browsers, Inside the controllers we can see the ‘__init__.py’ file and ‘controllers.py’ file. In the ‘__init__.py’ file it will load or import the ‘controllers.py’. And the ‘controllers.py’ file which render the request to show the website.
  • 9.  demo : Here we have to add ‘demo.xml’ file, which are loaded in the demonstration mode. For eg, If we need to load a contact details while we installing the module those contact details can be added in the ‘demo.xml’ file. So, the ‘demo.xml’ file uploaded while we installing the module.
  • 10. ➢ doc: Here we have to add like ‘.pdf’, ‘.txt’ file. Here we can update documents related to this module. ➢ i8n: This is for internationalization, it can be user to add translation to your modules. It consist of ‘.po’ file, For eg, If the user is using arabic language, he needs its fields, labels or things in arabic, we can load the fields name in arabic in the ‘.po’ files. And ‘po’ can be obtained by exporting the custom modules.
  • 11. joijjjjj ➢ 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.
  • 12. ➢ reports: All the files that relate to reports will be included in the report directory. We can create different reports in Odoo. A report contains 2 elements: ir.actions.report: which defines different parameters for the report. Qweb view: We can render the reports using different elements in qweb. The reports directory also contains a ‘__init__.py’ and python file named as ‘reports.py’ file. And the ‘__init__.py’ file also load the ‘reports.py’ file in the report.
  • 13.  security: All security-related files are included in this directory. We can create different users and can set permissions to them separately. Here we have ‘.xml’ and ‘csv’ files. In the csv files we can add the access right for the users. We can allow the permission for read,write,create and unlink for each and every user. also possible to set different rules for security in the ‘security.xml’ file.
  • 14.  static: All web assets are included in the status directory. We have an src directory inside the static directory. JS, CSS, SCSS, img, and many more are the different files for the web interface, these are defined corresponding directories like JS, CSS, SCSS, img, and many more under the src directory.
  • 15.  In Odoo 15 the assets paths will be added on the __manifest__.py.
  • 16. ➢ tests: If the module needed any test cases, those test cases can be added at here ➢ views: Views directory contains XML files for views and templates. Views are the visualization of records. We can define views for how to display the records for the end-user. The developer can also do different customization in views. Here we can add ‘.xml’ file. There are different view types in Odoo such as, tree, form, activity, kanban, and many more.
  • 17.  wizard: Which contains the interactive section with dialogue boxes in odoo. And here it shows the pop-up like in odoo UI. It also contain ‘__init__.py’ and ‘wizard.py’ file.
  • 18. 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. Composition of Module in Odoo 15