SlideShare a Scribd company logo
4
Most read
5
Most read
10
Most read
How to Install Custom
Module in Odoo 17
Enterprise
Introduction
Enterprise
In Odoo, a custom module is a self-contained package of code
that extends or modifies the standard functionality of the Odoo
system. Custom modules are used to implement additional
features, business logic, or changes to the user interface that are
specific to an organization's needs
Custom Modules
Enterprise
● Custom modules to tailor the system to the unique
requirements of a business.
● These custom modules serve as containers for organizing
and encapsulating related functionality, such as data
models, views, actions, and business logic.
Models and Fields
Enterprise
● Developers can define new data models that represent the
various entities or concepts relevant to the business
domain.
● Each model defines the structure of a particular type of
data, including its fields, relationships with other models,
and any constraints or behaviors associated with it.
● Fields represent the individual pieces of data that are
stored within each record of the model. These can include
things like text fields, numeric fields, selection fields, date
fields, etc.
Views
Enterprise
● How the data should be presented to users through views.
● Views determine the layout and presentation of data on
screens, including forms for data entry, lists for displaying
records, kanban boards for visual workflows, and various
types of reports.
● By defining views within a custom module, developers can
control the user interface and ensure that it aligns with the
specific workflows and requirements of the business.
Install custom module(steps)
Enterprise
1. Prepare the Environment:Ensure Odoo 17 is Installed
2. Place the Custom Module
3. Update the Configuration File:Add the Custom Addons
Path
4. Update Odoo: Update the Module List
5. Install the Custom Module
By following these steps, we can successfully install a custom
module in Odoo 17. This process involves placing the module in
the correct directory, updating Odoo’s configuration, and using
the web interface to install the module.
Install the custom module(click the
activate button to install the module)
Enterprise
Steps
Enterprise
● Directory Structure:
Odoo module has a specific directory structure, which
helps organize the module’s components
Steps
Enterprise
● init.py: This file is used to initialize the module. It can
import other Python files within the module.
○ from . import models
● manifest.py:This file contains metadata about the module,
such as its name, version, author, dependencies, and a
description.
Models
Enterprise
Models: Models define the data structure and business logic. They
are Python classes that inherit from Odoo’s base model classes.
Example
from odoo import models, fields
class MyModel(models.Model):
_name = 'my.model'
_description = 'My Custom Model'
name = fields.Char(string='Name',
required=True)
description = fields.Text(string='Description')
active = fields.Boolean(string='Active',
default=True)
Views
Enterprise
Views: Views define how data is presented to the user. This includes form
views, list views, kanban views, etc.
Example(Form view)
<record id="view_my_model_form" model="ir.ui.view">
<field name="name">my.model.form</field>
<field name="model">my.model</field>
<field name="arch" type="xml">
<form string="My Model">
<sheet>
<group>
<field name="name"/>
<field name="description"/>
<field name="active"/>
</group>
</sheet>
</form>
</field>
</record>
Example(Tree view)
Enterprise
<record id="view_my_model_tree" model="ir.ui.view">
<field name="name">my.model.tree</field>
<field name="model">my.model</field>
<field name="arch" type="xml">
<tree string="My Model">
<field name="name"/>
<field name="active"/>
</tree>
</field>
</record>
Security
Enterprise
Security: Security rules and access controls are defined to manage user
permissions.
Example(Form view)
Id,name,model_id:id,group_id:id,perm_read,perm_write,
perm_create,perm_unlink
access_my_model,my.model,model_my_model,base.group_user,1,1,1,1
Data
Enterprise
Data: Initial data or configuration data can be loaded when the module
is installed.
Example(Data)
<odoo>
<record id="my_model_data_1"
model="my.model">
<field name="name">Example Record</field>
<field name="description">This is an example
record
</field>
</record>
</odoo>
Enterprise
Example(Hospital Management-Model)
Enterprise
Example(Hospital Management-Security)
Enterprise
Example(Hospital Management-View-Tree)
Enterprise
Example(Hospital Management-View-Form)
Enterprise
Conclusion
Hence this is how we can develop and install a custom module in
Odoo .
For More Info.
Check our company website for related
blogs and Odoo book.
Check our YouTube channel for
functional and technical videos in Odoo.
Enterprise
www.cybrosys.com

More Related Content

PPTX
Demonstration module in Odoo 17 - Odoo 17 Slides
PDF
Step-by-Step Guide of Creating a Custom Module in Odoo
PDF
How to Start Developing Modules in Odoo.pdf
PDF
Step-by-Step Guide to Customizing Odoo Modules
PPTX
How to Create Sequence Numbers in Odoo 17
PPTX
Building a Module in Odoo 16
PDF
A Comprehensive Guide to Safe Odoo ERP Customization Practices
PPTX
How to Build a Module in Odoo 15 Scaffold Method
Demonstration module in Odoo 17 - Odoo 17 Slides
Step-by-Step Guide of Creating a Custom Module in Odoo
How to Start Developing Modules in Odoo.pdf
Step-by-Step Guide to Customizing Odoo Modules
How to Create Sequence Numbers in Odoo 17
Building a Module in Odoo 16
A Comprehensive Guide to Safe Odoo ERP Customization Practices
How to Build a Module in Odoo 15 Scaffold Method

Similar to How to Install Custom Module in Odoo 17 - Odoo 17 Slides (20)

PPTX
How to Create a Basic Module in Odoo 17 - Odoo 17 Slides
PPTX
Odoo 15 Composition of Module
PPTX
URLS and routing in odoo 18 - Odoo Slides
PPTX
Odoo (Build module, Security, ORM)
ODP
Contributions: what they are and how to find them
PPTX
Data Files In Odoo 16
PPTX
Module Structure in Odoo 15
PDF
Custom Odoo ERP Modules: Build & Implement Guide
PPTX
Different types of inheritance in odoo 18
PPTX
What is Property Fields in Odoo 17 ERP Module
PPTX
URLs and Routing in the Odoo 17 Website App
PPTX
Post init hook in the odoo 17 ERP Module
PDF
A Comprehensive Guide to Building Custom Odoo Dashboards
PPTX
How To Create a Transient Model in Odoo 17
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
PPTX
Basic Concept of Object oriented Programming
PDF
Multiple odoo with single vue storefront
PDF
Effortless Migration to Odoo from Your Existing ERP System
PPTX
External dependencies ,pre init hook &amp; post init hook in odoo
PPTX
Delegation Inheritance in Odoo 17 and Its Use Cases
How to Create a Basic Module in Odoo 17 - Odoo 17 Slides
Odoo 15 Composition of Module
URLS and routing in odoo 18 - Odoo Slides
Odoo (Build module, Security, ORM)
Contributions: what they are and how to find them
Data Files In Odoo 16
Module Structure in Odoo 15
Custom Odoo ERP Modules: Build & Implement Guide
Different types of inheritance in odoo 18
What is Property Fields in Odoo 17 ERP Module
URLs and Routing in the Odoo 17 Website App
Post init hook in the odoo 17 ERP Module
A Comprehensive Guide to Building Custom Odoo Dashboards
How To Create a Transient Model in Odoo 17
How to Create a PDF Report in Odoo 18 - Odoo Slides
Basic Concept of Object oriented Programming
Multiple odoo with single vue storefront
Effortless Migration to Odoo from Your Existing ERP System
External dependencies ,pre init hook &amp; post init hook in odoo
Delegation Inheritance in Odoo 17 and Its Use Cases
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
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
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Institutional Correction lecture only . . .
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Complications of Minimal Access Surgery at WLH
PDF
RMMM.pdf make it easy to upload and study
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.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 Đ...
2.FourierTransform-ShortQuestionswithAnswers.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Microbial disease of the cardiovascular and lymphatic systems
Institutional Correction lecture only . . .
Pharma ospi slides which help in ospi learning
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPH.pptx obstetrics and gynecology in nursing
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
human mycosis Human fungal infections are called human mycosis..pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Anesthesia in Laparoscopic Surgery in India
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Complications of Minimal Access Surgery at WLH
RMMM.pdf make it easy to upload and study
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf

How to Install Custom Module in Odoo 17 - Odoo 17 Slides

  • 1. How to Install Custom Module in Odoo 17 Enterprise
  • 2. Introduction Enterprise In Odoo, a custom module is a self-contained package of code that extends or modifies the standard functionality of the Odoo system. Custom modules are used to implement additional features, business logic, or changes to the user interface that are specific to an organization's needs
  • 3. Custom Modules Enterprise ● Custom modules to tailor the system to the unique requirements of a business. ● These custom modules serve as containers for organizing and encapsulating related functionality, such as data models, views, actions, and business logic.
  • 4. Models and Fields Enterprise ● Developers can define new data models that represent the various entities or concepts relevant to the business domain. ● Each model defines the structure of a particular type of data, including its fields, relationships with other models, and any constraints or behaviors associated with it. ● Fields represent the individual pieces of data that are stored within each record of the model. These can include things like text fields, numeric fields, selection fields, date fields, etc.
  • 5. Views Enterprise ● How the data should be presented to users through views. ● Views determine the layout and presentation of data on screens, including forms for data entry, lists for displaying records, kanban boards for visual workflows, and various types of reports. ● By defining views within a custom module, developers can control the user interface and ensure that it aligns with the specific workflows and requirements of the business.
  • 6. Install custom module(steps) Enterprise 1. Prepare the Environment:Ensure Odoo 17 is Installed 2. Place the Custom Module 3. Update the Configuration File:Add the Custom Addons Path 4. Update Odoo: Update the Module List 5. Install the Custom Module By following these steps, we can successfully install a custom module in Odoo 17. This process involves placing the module in the correct directory, updating Odoo’s configuration, and using the web interface to install the module.
  • 7. Install the custom module(click the activate button to install the module) Enterprise
  • 8. Steps Enterprise ● Directory Structure: Odoo module has a specific directory structure, which helps organize the module’s components
  • 9. Steps Enterprise ● init.py: This file is used to initialize the module. It can import other Python files within the module. ○ from . import models ● manifest.py:This file contains metadata about the module, such as its name, version, author, dependencies, and a description.
  • 10. Models Enterprise Models: Models define the data structure and business logic. They are Python classes that inherit from Odoo’s base model classes. Example from odoo import models, fields class MyModel(models.Model): _name = 'my.model' _description = 'My Custom Model' name = fields.Char(string='Name', required=True) description = fields.Text(string='Description') active = fields.Boolean(string='Active', default=True)
  • 11. Views Enterprise Views: Views define how data is presented to the user. This includes form views, list views, kanban views, etc. Example(Form view) <record id="view_my_model_form" model="ir.ui.view"> <field name="name">my.model.form</field> <field name="model">my.model</field> <field name="arch" type="xml"> <form string="My Model"> <sheet> <group> <field name="name"/> <field name="description"/> <field name="active"/> </group> </sheet> </form> </field> </record>
  • 12. Example(Tree view) Enterprise <record id="view_my_model_tree" model="ir.ui.view"> <field name="name">my.model.tree</field> <field name="model">my.model</field> <field name="arch" type="xml"> <tree string="My Model"> <field name="name"/> <field name="active"/> </tree> </field> </record>
  • 13. Security Enterprise Security: Security rules and access controls are defined to manage user permissions. Example(Form view) Id,name,model_id:id,group_id:id,perm_read,perm_write, perm_create,perm_unlink access_my_model,my.model,model_my_model,base.group_user,1,1,1,1
  • 14. Data Enterprise Data: Initial data or configuration data can be loaded when the module is installed. Example(Data) <odoo> <record id="my_model_data_1" model="my.model"> <field name="name">Example Record</field> <field name="description">This is an example record </field> </record> </odoo>
  • 19. Enterprise Conclusion Hence this is how we can develop and install a custom module in Odoo .
  • 20. For More Info. Check our company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo. Enterprise www.cybrosys.com