際際滷

際際滷Share a Scribd company logo
How to Install Odoo 18 with Pycharm
Enterprise
Enterprise
Introduction
In this slide well discuss the installation of odoo 18 with
pycharm. Odoo 18 is a powerful business management software
known for its enhanced features and ability to streamline
operations. Built with Python 3.10+ for the backend and
PostgreSQL as its database, it provides a reliable and efficient
system. The frontend is driven by JavaScript, ensuring a smooth
user interface. Paired with Ubuntu 22.04 LTS, a stable and
secure operating system with long-term support, Odoo 18 offers
optimal performance and compatibility.
Enterprise
Step 1: Download and install the Pycharm IDE
It is important to ensure our machine meets certain basic
requirements to run PyCharm smoothly. The requirements for
installing PyCharm on your computer are:
Requireme
nt
Minimum Recommended
RAM 4 GB of free RAM 8 GB of total system RAM
CPU Any modern CPU Multi-core CPU. PyCharm
leverages multithreading
for various operations and
processes, allowing it to
perform faster with an
increased number of CPU
cores.
Enterprise
Disk
Space
3.5 GB SSD drive
with at least
5 GB of free
space
Monitor
Resoluti
on
1024768 19201080
Operatin
g system
Officially released 64-bit versions of the
following:
Microsoft Windows 10 1809 or laterWindows
Server 2019 or latermacOS 11.0 or laterAny
Linux distribution that supports Gnome, KDE
, or Unity DE. PyCharm is not available for
the Linux distributions that do not include
GLIBC 2.27 or later. Pre-release versions are
not supported.
Latest 64-bit
version of
Windows,
macOS, or
Linux (for
example,
Debian,
Ubuntu, or
RHEL)
Enterprise
We can install PyCharm by downloading the Debian installation file
from the following URL:
PyCharm Community Edition Download
Alternatively, we can install PyCharm using the command line. To do
this, open Terminal (you can press Ctrl + Alt + T to launch Terminal)
and run the following commands
sudo apt-get update
sudo apt-get upgrade
sudo snap install pycharm-community --classic
Enterprise
Step 2: Installing Python 3.12
The latest version of Python 3.12 isnt available in the default Ubuntu
repositories. To install it, well need to add an alternative repository.
The deadsnakes repository on Launchpad contains various Python
packages, including Python 3.12.
To add the deadsnakes repository, use the following commands:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
Enterprise
You can verify the updated list of Python packages using the following
command.
apt list | grep python3.12
You can install Python 3.12 by running the following command:
Install the necessary packages for Python 3, use the following code:
sudo apt-get install python3.12
sudo apt-get install python3.12-dev build-essential libjpeg-
dev libpq-dev libjpeg8-dev libxml2-dev libssl-dev libffi-dev
libmysqlclient-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-
dev liblcms2-dev
Enterprise
Step 3: Install Web Dependencies
The next step involves installing the necessary web dependencies.
sudo apt-get install -y npm
sudo ln -s /usr/bin/nodejs/usr/bin/node
sudo npm install -g less less-plugin-clean-css
sudo apt-get install -y node-less
Step 4: Install Wkhtmltopdf
To generate Odoo reports, Wkhtmltopdf needs to be installed. You
can do this by running the following command:
sudo wget
https://github.com/wkhtmltopdf/wkhtmltopdf/releases/downl
oad/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
Enterprise
Step 5: Install PostgreSQL
The next step is to install PostgreSQL
sudo apt install postgresql postgresql-client
Step 6: Configure a Database User Role for Odoo Databases
Create a new database user by following these instructions. Be sure
to set a password for this user, as you'll need it when creating the
configuration file, so keep it saved.
sudo su - postgres
createuser --createdb --username postgres --no-createrole --
no-superuser --pwprompt odoo18
Enterprise
Next, grant superuser privileges to the specified user.
psql
ALTER USER odoo18 WITH SUPERUSER;
Finally, exit both psql and the Postgres user.
q
exit
Enterprise
Then, use the command below to clone the Odoo code into an odoo18
directory within your home directory:
git clone https://www.github.com/odoo/odoo --depth 1 --branch
18.0 --single-branch odoo18
sudo apt-get install git
Step 7: Obtain Odoo 18 Source Code
You can acquire the Odoo 18 Community Source code directly from
Odoo's GitHub repository. Alternatively, you can clone it using Git.
First, install Git by running the following command:
Enterprise
Step 8: Open the Odoo Project in PyCharm
Launch PyCharm Community Edition and navigate to the Odoo18
directory. Once the project is open, you might see a dialogue box
similar to the one shown below. This is for creating a virtual
environment; however, we'll set up the virtual environment via the
terminal, so go ahead and cancel it.
Enterprise
Enterprise
To open the terminal, either click on the icon displayed below or use
the shortcut Alt+F12.
Enterprise
Next, run the following commands to create a virtual environment
using Python 3.12.curl -sS
https://bootstrap.pypyour_venv_namea.io/get-pip.py | python3.12
sudo apt install python3.12-venv
python3.12 -m venv your_venv_namecurl -sS
https://bootstrap.pypa.io/get-pip.py | python3.12
sudo apt install python3.12-venv
python3.12 -m venv your_venv_name
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12
sudo apt install python3.12-venv
python3.12 -m venv your_venv_name
Enterprise
After closing and reopening the terminal, youll notice that your
virtual environment is active. The terminal will display an indicator
with the name of your virtual environment, as shown below:
If your virtual environment doesnt activate automatically, use
the following command.
source your_venv_name/bin/activate
Enterprise
Step 9: Install Required Python Packages
Odoo depends on several Python packages listed in the require file
located in the odoo18 directory. To install these packages, execute
the following command in the terminal.
pip install -r requirements.txt
If no errors occur, you can use the following command to verify that
all the dependencies listed in requirements.txt have been
successfully installed.
pip list
Enterprise
Enterprise
If you encounter any errors, open the requirements.txt file and install
each dependency individually using the following command.
pip install requirement_name
Example 1:
Example 2:
Enterprise
In most cases, when installing packages listed twice, only one needs
to be installed. So, if one fails to install, it usually isnt an issue.
Additionally, if prerequisites defined with sys_platform as 'win32' fail
to install, you can skip them. If errors arise while installing the
package "psycopg2==2.9.2 ; sys_platform != 'win32' and
python_version <= '3.10' or psycopg2==2.9.5 ; python_version > '3.10'
or sys_platform == 'win32'", use the following command to install an
alternative package instead.
pip install psycopg2-binary
Enterprise
Step 10: Create the odoo.conf File in the odoo18 Directory
To create the configuration file, right-click the Odoo18 directory and
select New -> File -> odoo.conf. After creating the odoo.conf file, insert
the following block of code, and make sure to update the
db_password field with the password you set for the Odoo18
database user in the previous step.
[options]
admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = odoo18
db_password = your_password
addons_path = /home/user/odoo18/addons
xmlrpc_port = 8018
Enterprise
Additionally, update the addons_path value with the actual path to
the Odoo18 addons directory. You can obtain this path by navigating
to the addons directory and pressing Ctrl + Shift + C. This will copy the
current directory path, which you can then replace in the
addons_path field. If you create a new directory for your custom
modules, be sure to include its path in the addons_path, separated by
commas.
eg: addons_path = /home/user/odoo/addons,
/home/user/odoo/custom_addons
Enterprise
Step 11: Add Python Interpreter
To configure a Python interpreter, navigate to Settings -> Project:
odoo18 -> Python Interpreter.
Enterprise
When you open the specified window, if the interpreter (Python 3.12
from the odoo18 virtual environment) is already configured, no
changes are needed. Otherwise, choose the Add Interpreter option
and proceed with the following selections.
Enterprise
Enterprise
Step 12: Configure the Project in PyCharm
To set up the project configuration, click Edit Configurations under
current File.
Enterprise
When the dialogue box appears, click the "+" button and choose
Python from the list. Then, fill in the fields as shown in the image
below.
Enterprise
Step 13: Test Run Odoo 18
The Odoo setup is complete. You can now test it by clicking the button
below to launch the project.
Enterprise
You can now test your setup by navigating to localhost:8018 in your
browser.
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

Similar to How to Install Odoo 18 with Pycharm - Odoo 18 際際滷s (20)

Software Instructions
Software InstructionsSoftware Instructions
Software Instructions
Anastasia Khudoyarova
Odoo V8 Installation
Odoo V8 InstallationOdoo V8 Installation
Odoo V8 Installation
Emipro Technologies Pvt. Ltd.
LIGGGHTS installation-guide
LIGGGHTS installation-guideLIGGGHTS installation-guide
LIGGGHTS installation-guide
Braj Bhushan Prasad
Open erp on ubuntu
Open erp on ubuntuOpen erp on ubuntu
Open erp on ubuntu
Iker Coranti
Odoo 13 installation on ubuntu 19.04
Odoo 13 installation on ubuntu 19.04Odoo 13 installation on ubuntu 19.04
Odoo 13 installation on ubuntu 19.04
PlanetOdoo
Android Kali NetHunter Install - v3.pdf
Android Kali NetHunter Install - v3.pdfAndroid Kali NetHunter Install - v3.pdf
Android Kali NetHunter Install - v3.pdf
Suhermanto15
Orangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User ManualOrangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User Manual
Orangescrum
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
vjvarenya
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuHow To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
Wirabumi Software
Linux for programmers
Linux for programmersLinux for programmers
Linux for programmers
Md. Al Amin
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
Rajesh Rajamani
Open source projects with python
Open source projects with pythonOpen source projects with python
Open source projects with python
roskakori
Princeton Wintersession: Software Quality Assurance Tooling
Princeton Wintersession: Software Quality Assurance ToolingPrinceton Wintersession: Software Quality Assurance Tooling
Princeton Wintersession: Software Quality Assurance Tooling
Henry Schreiner
Pythonpresent
PythonpresentPythonpresent
Pythonpresent
Chui-Wen Chiu
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
kuldeepakgautam
Install odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debianInstall odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debian
Francisco Servera
Mod06 new development tools
Mod06 new development toolsMod06 new development tools
Mod06 new development tools
Peter Haase
Baabtra django framework installation and sample project using aptana
Baabtra django framework installation and sample project using aptanaBaabtra django framework installation and sample project using aptana
Baabtra django framework installation and sample project using aptana
baabtra.com - No. 1 supplier of quality freshers
Installing OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.xInstalling OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.x
Nader Karimi
Lean Drupal Repositories with Composer and Drush
Lean Drupal Repositories with Composer and DrushLean Drupal Repositories with Composer and Drush
Lean Drupal Repositories with Composer and Drush
Pantheon
Open erp on ubuntu
Open erp on ubuntuOpen erp on ubuntu
Open erp on ubuntu
Iker Coranti
Odoo 13 installation on ubuntu 19.04
Odoo 13 installation on ubuntu 19.04Odoo 13 installation on ubuntu 19.04
Odoo 13 installation on ubuntu 19.04
PlanetOdoo
Android Kali NetHunter Install - v3.pdf
Android Kali NetHunter Install - v3.pdfAndroid Kali NetHunter Install - v3.pdf
Android Kali NetHunter Install - v3.pdf
Suhermanto15
Orangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User ManualOrangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User Manual
Orangescrum
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
vjvarenya
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuHow To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
Wirabumi Software
Linux for programmers
Linux for programmersLinux for programmers
Linux for programmers
Md. Al Amin
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
Rajesh Rajamani
Open source projects with python
Open source projects with pythonOpen source projects with python
Open source projects with python
roskakori
Princeton Wintersession: Software Quality Assurance Tooling
Princeton Wintersession: Software Quality Assurance ToolingPrinceton Wintersession: Software Quality Assurance Tooling
Princeton Wintersession: Software Quality Assurance Tooling
Henry Schreiner
Install odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debianInstall odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debian
Francisco Servera
Mod06 new development tools
Mod06 new development toolsMod06 new development tools
Mod06 new development tools
Peter Haase
Installing OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.xInstalling OpenCV 4 on Ubuntu 18.x
Installing OpenCV 4 on Ubuntu 18.x
Nader Karimi
Lean Drupal Repositories with Composer and Drush
Lean Drupal Repositories with Composer and DrushLean Drupal Repositories with Composer and Drush
Lean Drupal Repositories with Composer and Drush
Pantheon

More from Celine George (20)

How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17
Celine George
Field Parameters in Odoo 18 - Odoo 18 際際滷s
Field Parameters in Odoo 18 - Odoo 18 際際滷sField Parameters in Odoo 18 - Odoo 18 際際滷s
Field Parameters in Odoo 18 - Odoo 18 際際滷s
Celine George
How to Invoice Shipping Cost to Customer in Odoo 17
How to Invoice Shipping Cost to Customer in Odoo 17How to Invoice Shipping Cost to Customer in Odoo 17
How to Invoice Shipping Cost to Customer in Odoo 17
Celine George
How to configure the retail shop in Odoo 17 Point of Sale
How to configure the retail shop in Odoo 17 Point of SaleHow to configure the retail shop in Odoo 17 Point of Sale
How to configure the retail shop in Odoo 17 Point of Sale
Celine George
How to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in OdooHow to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in Odoo
Celine George
How to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of SaleHow to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of Sale
Celine George
Analysis of Conf File Parameters in the Odoo 18
Analysis of Conf File Parameters in the Odoo 18Analysis of Conf File Parameters in the Odoo 18
Analysis of Conf File Parameters in the Odoo 18
Celine George
Purchase Analysis in Odoo 17 - Odoo 際際滷s
Purchase Analysis in Odoo 17 - Odoo 際際滷sPurchase Analysis in Odoo 17 - Odoo 際際滷s
Purchase Analysis in Odoo 17 - Odoo 際際滷s
Celine George
Analysis of Conf File Parameters in Odoo 17
Analysis of Conf File Parameters in Odoo 17Analysis of Conf File Parameters in Odoo 17
Analysis of Conf File Parameters in Odoo 17
Celine George
How to Manage Check Out Process in Odoo 17 Website
How to Manage Check Out Process in Odoo 17 WebsiteHow to Manage Check Out Process in Odoo 17 Website
How to Manage Check Out Process in Odoo 17 Website
Celine George
Managing Online Signature and Payment with Odoo 17
Managing Online Signature and Payment with Odoo 17Managing Online Signature and Payment with Odoo 17
Managing Online Signature and Payment with Odoo 17
Celine George
Recruitment in the Odoo 17 - Odoo 17 際際滷s
Recruitment in the Odoo 17 - Odoo 17 際際滷sRecruitment in the Odoo 17 - Odoo 17 際際滷s
Recruitment in the Odoo 17 - Odoo 17 際際滷s
Celine George
How to Setup Company Data in Odoo 17 Accounting App
How to Setup Company Data in Odoo 17 Accounting AppHow to Setup Company Data in Odoo 17 Accounting App
How to Setup Company Data in Odoo 17 Accounting App
Celine George
How to Manage Purchase Order Approval in Odoo 18
How to Manage Purchase Order Approval in Odoo 18How to Manage Purchase Order Approval in Odoo 18
How to Manage Purchase Order Approval in Odoo 18
Celine George
How to Configure Outgoing and Incoming mail servers in Odoo 18
How to Configure Outgoing and Incoming mail servers in Odoo 18How to Configure Outgoing and Incoming mail servers in Odoo 18
How to Configure Outgoing and Incoming mail servers in Odoo 18
Celine George
How to Grant Discounts in Sale Order Lines in Odoo 18 Sales
How to Grant Discounts in Sale Order Lines in Odoo 18 SalesHow to Grant Discounts in Sale Order Lines in Odoo 18 Sales
How to Grant Discounts in Sale Order Lines in Odoo 18 Sales
Celine George
URLS and routing in odoo 18 - Odoo 際際滷s
URLS and routing in odoo 18 - Odoo 際際滷sURLS and routing in odoo 18 - Odoo 際際滷s
URLS and routing in odoo 18 - Odoo 際際滷s
Celine George
Comparing RFQ Lines for the best price in Odoo 17
Comparing RFQ Lines for the best price in Odoo 17Comparing RFQ Lines for the best price in Odoo 17
Comparing RFQ Lines for the best price in Odoo 17
Celine George
List View Attributes in Odoo 18 - Odoo 際際滷s
List View Attributes in Odoo 18 - Odoo 際際滷sList View Attributes in Odoo 18 - Odoo 際際滷s
List View Attributes in Odoo 18 - Odoo 際際滷s
Celine George
How to Set Default Terms and Conditions in Odoo 17 Accounting
How to Set Default Terms and Conditions in Odoo 17 AccountingHow to Set Default Terms and Conditions in Odoo 17 Accounting
How to Set Default Terms and Conditions in Odoo 17 Accounting
Celine George
How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17
Celine George
Field Parameters in Odoo 18 - Odoo 18 際際滷s
Field Parameters in Odoo 18 - Odoo 18 際際滷sField Parameters in Odoo 18 - Odoo 18 際際滷s
Field Parameters in Odoo 18 - Odoo 18 際際滷s
Celine George
How to Invoice Shipping Cost to Customer in Odoo 17
How to Invoice Shipping Cost to Customer in Odoo 17How to Invoice Shipping Cost to Customer in Odoo 17
How to Invoice Shipping Cost to Customer in Odoo 17
Celine George
How to configure the retail shop in Odoo 17 Point of Sale
How to configure the retail shop in Odoo 17 Point of SaleHow to configure the retail shop in Odoo 17 Point of Sale
How to configure the retail shop in Odoo 17 Point of Sale
Celine George
How to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in OdooHow to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in Odoo
Celine George
How to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of SaleHow to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of Sale
Celine George
Analysis of Conf File Parameters in the Odoo 18
Analysis of Conf File Parameters in the Odoo 18Analysis of Conf File Parameters in the Odoo 18
Analysis of Conf File Parameters in the Odoo 18
Celine George
Purchase Analysis in Odoo 17 - Odoo 際際滷s
Purchase Analysis in Odoo 17 - Odoo 際際滷sPurchase Analysis in Odoo 17 - Odoo 際際滷s
Purchase Analysis in Odoo 17 - Odoo 際際滷s
Celine George
Analysis of Conf File Parameters in Odoo 17
Analysis of Conf File Parameters in Odoo 17Analysis of Conf File Parameters in Odoo 17
Analysis of Conf File Parameters in Odoo 17
Celine George
How to Manage Check Out Process in Odoo 17 Website
How to Manage Check Out Process in Odoo 17 WebsiteHow to Manage Check Out Process in Odoo 17 Website
How to Manage Check Out Process in Odoo 17 Website
Celine George
Managing Online Signature and Payment with Odoo 17
Managing Online Signature and Payment with Odoo 17Managing Online Signature and Payment with Odoo 17
Managing Online Signature and Payment with Odoo 17
Celine George
Recruitment in the Odoo 17 - Odoo 17 際際滷s
Recruitment in the Odoo 17 - Odoo 17 際際滷sRecruitment in the Odoo 17 - Odoo 17 際際滷s
Recruitment in the Odoo 17 - Odoo 17 際際滷s
Celine George
How to Setup Company Data in Odoo 17 Accounting App
How to Setup Company Data in Odoo 17 Accounting AppHow to Setup Company Data in Odoo 17 Accounting App
How to Setup Company Data in Odoo 17 Accounting App
Celine George
How to Manage Purchase Order Approval in Odoo 18
How to Manage Purchase Order Approval in Odoo 18How to Manage Purchase Order Approval in Odoo 18
How to Manage Purchase Order Approval in Odoo 18
Celine George
How to Configure Outgoing and Incoming mail servers in Odoo 18
How to Configure Outgoing and Incoming mail servers in Odoo 18How to Configure Outgoing and Incoming mail servers in Odoo 18
How to Configure Outgoing and Incoming mail servers in Odoo 18
Celine George
How to Grant Discounts in Sale Order Lines in Odoo 18 Sales
How to Grant Discounts in Sale Order Lines in Odoo 18 SalesHow to Grant Discounts in Sale Order Lines in Odoo 18 Sales
How to Grant Discounts in Sale Order Lines in Odoo 18 Sales
Celine George
URLS and routing in odoo 18 - Odoo 際際滷s
URLS and routing in odoo 18 - Odoo 際際滷sURLS and routing in odoo 18 - Odoo 際際滷s
URLS and routing in odoo 18 - Odoo 際際滷s
Celine George
Comparing RFQ Lines for the best price in Odoo 17
Comparing RFQ Lines for the best price in Odoo 17Comparing RFQ Lines for the best price in Odoo 17
Comparing RFQ Lines for the best price in Odoo 17
Celine George
List View Attributes in Odoo 18 - Odoo 際際滷s
List View Attributes in Odoo 18 - Odoo 際際滷sList View Attributes in Odoo 18 - Odoo 際際滷s
List View Attributes in Odoo 18 - Odoo 際際滷s
Celine George
How to Set Default Terms and Conditions in Odoo 17 Accounting
How to Set Default Terms and Conditions in Odoo 17 AccountingHow to Set Default Terms and Conditions in Odoo 17 Accounting
How to Set Default Terms and Conditions in Odoo 17 Accounting
Celine George

Recently uploaded (20)

Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study MaterialPass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Jenny408767
McElaney "What is inclusive publishing and why do we care about accessibility...
McElaney "What is inclusive publishing and why do we care about accessibility...McElaney "What is inclusive publishing and why do we care about accessibility...
McElaney "What is inclusive publishing and why do we care about accessibility...
National Information Standards Organization (NISO)
MIPLM subject matter expert Daniel Holzner
MIPLM subject matter expert Daniel HolznerMIPLM subject matter expert Daniel Holzner
MIPLM subject matter expert Daniel Holzner
MIPLM
CLEFT LIP AND PALATE: NURSING MANAGEMENT.pptx
CLEFT LIP AND PALATE: NURSING MANAGEMENT.pptxCLEFT LIP AND PALATE: NURSING MANAGEMENT.pptx
CLEFT LIP AND PALATE: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptxANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
PRADEEP ABOTHU
Introduction to Systematic Reviews - Prof Ejaz Khan
Introduction to Systematic Reviews - Prof Ejaz KhanIntroduction to Systematic Reviews - Prof Ejaz Khan
Introduction to Systematic Reviews - Prof Ejaz Khan
Systematic Reviews Network (SRN)
Unit 3: Combustion in Spark Ignition Engines
Unit 3: Combustion in Spark Ignition EnginesUnit 3: Combustion in Spark Ignition Engines
Unit 3: Combustion in Spark Ignition Engines
NileshKumbhar21
3. AI Trust Layer, Governance Explainability, Security & Compliance.pdf
3. AI Trust Layer, Governance  Explainability, Security & Compliance.pdf3. AI Trust Layer, Governance  Explainability, Security & Compliance.pdf
3. AI Trust Layer, Governance Explainability, Security & Compliance.pdf
Mukesh Kala
General Quiz at ChakraView 2025 | Amlan Sarkar | Ashoka Univeristy | Prelims ...
General Quiz at ChakraView 2025 | Amlan Sarkar | Ashoka Univeristy | Prelims ...General Quiz at ChakraView 2025 | Amlan Sarkar | Ashoka Univeristy | Prelims ...
General Quiz at ChakraView 2025 | Amlan Sarkar | Ashoka Univeristy | Prelims ...
Amlan Sarkar
MIPLM subject matter expert Dr Alihan Kaya
MIPLM subject matter expert Dr Alihan KayaMIPLM subject matter expert Dr Alihan Kaya
MIPLM subject matter expert Dr Alihan Kaya
MIPLM
Anti-Fungal Agents.pptx Medicinal Chemistry III B. Pharm Sem VI
Anti-Fungal Agents.pptx Medicinal Chemistry III B. Pharm Sem VIAnti-Fungal Agents.pptx Medicinal Chemistry III B. Pharm Sem VI
Anti-Fungal Agents.pptx Medicinal Chemistry III B. Pharm Sem VI
Samruddhi Khonde
U.S. Department of Education certification
U.S. Department of Education certificationU.S. Department of Education certification
U.S. Department of Education certification
Mebane Rash
MIPLM subject matter expert Dr Robert Klinski
MIPLM subject matter expert Dr Robert KlinskiMIPLM subject matter expert Dr Robert Klinski
MIPLM subject matter expert Dr Robert Klinski
MIPLM
MIPLM subject matter expert Nicos Raftis
MIPLM subject matter expert Nicos RaftisMIPLM subject matter expert Nicos Raftis
MIPLM subject matter expert Nicos Raftis
MIPLM
Different perspectives on dugout canoe heritage of Soomaa.pdf
Different perspectives on dugout canoe heritage of Soomaa.pdfDifferent perspectives on dugout canoe heritage of Soomaa.pdf
Different perspectives on dugout canoe heritage of Soomaa.pdf
Aivar Ruukel
Studying and Notetaking: Some Suggestions
Studying and Notetaking: Some SuggestionsStudying and Notetaking: Some Suggestions
Studying and Notetaking: Some Suggestions
Damian T. Gordon
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptxBIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
maniramkumar
10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx
Vivek Bhattji
All India Council of Skills and Vocational Studies (AICSVS) PROSPECTUS 2025
All India Council of Skills and Vocational Studies (AICSVS) PROSPECTUS 2025All India Council of Skills and Vocational Studies (AICSVS) PROSPECTUS 2025
All India Council of Skills and Vocational Studies (AICSVS) PROSPECTUS 2025
National Council of Open Schooling Research and Training
Knownsense 2025 Finals-U-25 General Quiz.pdf
Knownsense 2025 Finals-U-25 General Quiz.pdfKnownsense 2025 Finals-U-25 General Quiz.pdf
Knownsense 2025 Finals-U-25 General Quiz.pdf
Pragya - UEM Kolkata Quiz Club
Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study MaterialPass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Jenny408767
MIPLM subject matter expert Daniel Holzner
MIPLM subject matter expert Daniel HolznerMIPLM subject matter expert Daniel Holzner
MIPLM subject matter expert Daniel Holzner
MIPLM
CLEFT LIP AND PALATE: NURSING MANAGEMENT.pptx
CLEFT LIP AND PALATE: NURSING MANAGEMENT.pptxCLEFT LIP AND PALATE: NURSING MANAGEMENT.pptx
CLEFT LIP AND PALATE: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptxANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
PRADEEP ABOTHU
Unit 3: Combustion in Spark Ignition Engines
Unit 3: Combustion in Spark Ignition EnginesUnit 3: Combustion in Spark Ignition Engines
Unit 3: Combustion in Spark Ignition Engines
NileshKumbhar21
3. AI Trust Layer, Governance Explainability, Security & Compliance.pdf
3. AI Trust Layer, Governance  Explainability, Security & Compliance.pdf3. AI Trust Layer, Governance  Explainability, Security & Compliance.pdf
3. AI Trust Layer, Governance Explainability, Security & Compliance.pdf
Mukesh Kala
General Quiz at ChakraView 2025 | Amlan Sarkar | Ashoka Univeristy | Prelims ...
General Quiz at ChakraView 2025 | Amlan Sarkar | Ashoka Univeristy | Prelims ...General Quiz at ChakraView 2025 | Amlan Sarkar | Ashoka Univeristy | Prelims ...
General Quiz at ChakraView 2025 | Amlan Sarkar | Ashoka Univeristy | Prelims ...
Amlan Sarkar
MIPLM subject matter expert Dr Alihan Kaya
MIPLM subject matter expert Dr Alihan KayaMIPLM subject matter expert Dr Alihan Kaya
MIPLM subject matter expert Dr Alihan Kaya
MIPLM
Anti-Fungal Agents.pptx Medicinal Chemistry III B. Pharm Sem VI
Anti-Fungal Agents.pptx Medicinal Chemistry III B. Pharm Sem VIAnti-Fungal Agents.pptx Medicinal Chemistry III B. Pharm Sem VI
Anti-Fungal Agents.pptx Medicinal Chemistry III B. Pharm Sem VI
Samruddhi Khonde
U.S. Department of Education certification
U.S. Department of Education certificationU.S. Department of Education certification
U.S. Department of Education certification
Mebane Rash
MIPLM subject matter expert Dr Robert Klinski
MIPLM subject matter expert Dr Robert KlinskiMIPLM subject matter expert Dr Robert Klinski
MIPLM subject matter expert Dr Robert Klinski
MIPLM
MIPLM subject matter expert Nicos Raftis
MIPLM subject matter expert Nicos RaftisMIPLM subject matter expert Nicos Raftis
MIPLM subject matter expert Nicos Raftis
MIPLM
Different perspectives on dugout canoe heritage of Soomaa.pdf
Different perspectives on dugout canoe heritage of Soomaa.pdfDifferent perspectives on dugout canoe heritage of Soomaa.pdf
Different perspectives on dugout canoe heritage of Soomaa.pdf
Aivar Ruukel
Studying and Notetaking: Some Suggestions
Studying and Notetaking: Some SuggestionsStudying and Notetaking: Some Suggestions
Studying and Notetaking: Some Suggestions
Damian T. Gordon
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptxBIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
maniramkumar
10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx
Vivek Bhattji

How to Install Odoo 18 with Pycharm - Odoo 18 際際滷s

  • 1. How to Install Odoo 18 with Pycharm Enterprise
  • 2. Enterprise Introduction In this slide well discuss the installation of odoo 18 with pycharm. Odoo 18 is a powerful business management software known for its enhanced features and ability to streamline operations. Built with Python 3.10+ for the backend and PostgreSQL as its database, it provides a reliable and efficient system. The frontend is driven by JavaScript, ensuring a smooth user interface. Paired with Ubuntu 22.04 LTS, a stable and secure operating system with long-term support, Odoo 18 offers optimal performance and compatibility.
  • 3. Enterprise Step 1: Download and install the Pycharm IDE It is important to ensure our machine meets certain basic requirements to run PyCharm smoothly. The requirements for installing PyCharm on your computer are: Requireme nt Minimum Recommended RAM 4 GB of free RAM 8 GB of total system RAM CPU Any modern CPU Multi-core CPU. PyCharm leverages multithreading for various operations and processes, allowing it to perform faster with an increased number of CPU cores.
  • 4. Enterprise Disk Space 3.5 GB SSD drive with at least 5 GB of free space Monitor Resoluti on 1024768 19201080 Operatin g system Officially released 64-bit versions of the following: Microsoft Windows 10 1809 or laterWindows Server 2019 or latermacOS 11.0 or laterAny Linux distribution that supports Gnome, KDE , or Unity DE. PyCharm is not available for the Linux distributions that do not include GLIBC 2.27 or later. Pre-release versions are not supported. Latest 64-bit version of Windows, macOS, or Linux (for example, Debian, Ubuntu, or RHEL)
  • 5. Enterprise We can install PyCharm by downloading the Debian installation file from the following URL: PyCharm Community Edition Download Alternatively, we can install PyCharm using the command line. To do this, open Terminal (you can press Ctrl + Alt + T to launch Terminal) and run the following commands sudo apt-get update sudo apt-get upgrade sudo snap install pycharm-community --classic
  • 6. Enterprise Step 2: Installing Python 3.12 The latest version of Python 3.12 isnt available in the default Ubuntu repositories. To install it, well need to add an alternative repository. The deadsnakes repository on Launchpad contains various Python packages, including Python 3.12. To add the deadsnakes repository, use the following commands: sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update
  • 7. Enterprise You can verify the updated list of Python packages using the following command. apt list | grep python3.12 You can install Python 3.12 by running the following command: Install the necessary packages for Python 3, use the following code: sudo apt-get install python3.12 sudo apt-get install python3.12-dev build-essential libjpeg- dev libpq-dev libjpeg8-dev libxml2-dev libssl-dev libffi-dev libmysqlclient-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2- dev liblcms2-dev
  • 8. Enterprise Step 3: Install Web Dependencies The next step involves installing the necessary web dependencies. sudo apt-get install -y npm sudo ln -s /usr/bin/nodejs/usr/bin/node sudo npm install -g less less-plugin-clean-css sudo apt-get install -y node-less Step 4: Install Wkhtmltopdf To generate Odoo reports, Wkhtmltopdf needs to be installed. You can do this by running the following command: sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/downl oad/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
  • 9. Enterprise Step 5: Install PostgreSQL The next step is to install PostgreSQL sudo apt install postgresql postgresql-client Step 6: Configure a Database User Role for Odoo Databases Create a new database user by following these instructions. Be sure to set a password for this user, as you'll need it when creating the configuration file, so keep it saved. sudo su - postgres createuser --createdb --username postgres --no-createrole -- no-superuser --pwprompt odoo18
  • 10. Enterprise Next, grant superuser privileges to the specified user. psql ALTER USER odoo18 WITH SUPERUSER; Finally, exit both psql and the Postgres user. q exit
  • 11. Enterprise Then, use the command below to clone the Odoo code into an odoo18 directory within your home directory: git clone https://www.github.com/odoo/odoo --depth 1 --branch 18.0 --single-branch odoo18 sudo apt-get install git Step 7: Obtain Odoo 18 Source Code You can acquire the Odoo 18 Community Source code directly from Odoo's GitHub repository. Alternatively, you can clone it using Git. First, install Git by running the following command:
  • 12. Enterprise Step 8: Open the Odoo Project in PyCharm Launch PyCharm Community Edition and navigate to the Odoo18 directory. Once the project is open, you might see a dialogue box similar to the one shown below. This is for creating a virtual environment; however, we'll set up the virtual environment via the terminal, so go ahead and cancel it.
  • 14. Enterprise To open the terminal, either click on the icon displayed below or use the shortcut Alt+F12.
  • 15. Enterprise Next, run the following commands to create a virtual environment using Python 3.12.curl -sS https://bootstrap.pypyour_venv_namea.io/get-pip.py | python3.12 sudo apt install python3.12-venv python3.12 -m venv your_venv_namecurl -sS https://bootstrap.pypa.io/get-pip.py | python3.12 sudo apt install python3.12-venv python3.12 -m venv your_venv_name curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12 sudo apt install python3.12-venv python3.12 -m venv your_venv_name
  • 16. Enterprise After closing and reopening the terminal, youll notice that your virtual environment is active. The terminal will display an indicator with the name of your virtual environment, as shown below: If your virtual environment doesnt activate automatically, use the following command. source your_venv_name/bin/activate
  • 17. Enterprise Step 9: Install Required Python Packages Odoo depends on several Python packages listed in the require file located in the odoo18 directory. To install these packages, execute the following command in the terminal. pip install -r requirements.txt If no errors occur, you can use the following command to verify that all the dependencies listed in requirements.txt have been successfully installed. pip list
  • 19. Enterprise If you encounter any errors, open the requirements.txt file and install each dependency individually using the following command. pip install requirement_name Example 1: Example 2:
  • 20. Enterprise In most cases, when installing packages listed twice, only one needs to be installed. So, if one fails to install, it usually isnt an issue. Additionally, if prerequisites defined with sys_platform as 'win32' fail to install, you can skip them. If errors arise while installing the package "psycopg2==2.9.2 ; sys_platform != 'win32' and python_version <= '3.10' or psycopg2==2.9.5 ; python_version > '3.10' or sys_platform == 'win32'", use the following command to install an alternative package instead. pip install psycopg2-binary
  • 21. Enterprise Step 10: Create the odoo.conf File in the odoo18 Directory To create the configuration file, right-click the Odoo18 directory and select New -> File -> odoo.conf. After creating the odoo.conf file, insert the following block of code, and make sure to update the db_password field with the password you set for the Odoo18 database user in the previous step. [options] admin_passwd = admin db_host = localhost db_port = 5432 db_user = odoo18 db_password = your_password addons_path = /home/user/odoo18/addons xmlrpc_port = 8018
  • 22. Enterprise Additionally, update the addons_path value with the actual path to the Odoo18 addons directory. You can obtain this path by navigating to the addons directory and pressing Ctrl + Shift + C. This will copy the current directory path, which you can then replace in the addons_path field. If you create a new directory for your custom modules, be sure to include its path in the addons_path, separated by commas. eg: addons_path = /home/user/odoo/addons, /home/user/odoo/custom_addons
  • 23. Enterprise Step 11: Add Python Interpreter To configure a Python interpreter, navigate to Settings -> Project: odoo18 -> Python Interpreter.
  • 24. Enterprise When you open the specified window, if the interpreter (Python 3.12 from the odoo18 virtual environment) is already configured, no changes are needed. Otherwise, choose the Add Interpreter option and proceed with the following selections.
  • 26. Enterprise Step 12: Configure the Project in PyCharm To set up the project configuration, click Edit Configurations under current File.
  • 27. Enterprise When the dialogue box appears, click the "+" button and choose Python from the list. Then, fill in the fields as shown in the image below.
  • 28. Enterprise Step 13: Test Run Odoo 18 The Odoo setup is complete. You can now test it by clicking the button below to launch the project.
  • 29. Enterprise You can now test your setup by navigating to localhost:8018 in your browser.
  • 30. 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