SlideShare a Scribd company logo
How to setup Pycharm
environment for Odoo 17
Enterprise
Introduction
Enterprise
Setting up a development environment for odoo using
pycharm is highly preferred by odoo developers to develop
and debug odoo modules and other related functionalities .
Steps
Enterprise
Install Python 3.10:
The most recent Python 3.10 version is not accessible in
Ubuntu's default repository. As a result, we must add
another repository. Python Packages may be found in the
deadsnakes repository on launchpad.
Steps
Enterprise
Using the commands below, add the deadsnakes repository.
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
Steps
Enterprise
Using this command, you may check the updated Python package list.
apt list | grep python3.10
Python 3.10 can be installed using the following command:
sudo apt-get install python3.10
The following code may be used to install the required packages for Python3:
sudo apt-get install python3-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
Steps
Enterprise
Install web dependencies:
Installing the web dependencies is the next step.
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
Steps
Enterprise
Install the wkhtmltopdf:
If you want to publish Odoo reports, you must install
Wkhtmltopdf, which can be done with the following code.
sudo wget
https://github.com/wkhtmltopdf/wkhtmltopdf/releases/d
ownload/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo apt install -f
Steps
Enterprise
Install PostgreSQL
Next, we must install PostgreSQL:
sudo apt install postgresql postgresql-client
Steps
Enterprise
Configure a Database User Role for Odoo
Databases.
Create a database user with the following instructions, and
specify a password for the separate user because it will be
required when creating the conf file, so save it.
sudo su - postgres
createuser --createdb --username postgres --no-
createrole --no-superuser --pwprompt odoo17
Steps
Enterprise
Set the specified user as the superuser.
psql
ALTER USER odoo17 WITH SUPERUSER;
Exit from both psql and the Postgres user.
q
Exit
Steps
Enterprise
Get Odoo 17 Source Code
Odoo 17 Community Source code may be obtained straight
from Odoo's Github source. Otherwise, you may clone it
from git. Install git and then run the following commands:
sudo apt-get install git
Steps
Enterprise
The command below will clone the Odoo code into
the Odoo17 directory within your home directory.
git clone https://www.github.com/odoo/odoo --
depth 1 --branch 17.0 --single-branch odoo17
Steps
Enterprise
Open the Odoo project in Pycharm
Open Pycharm Community and navigate to the Odoo17
directory. After the project is open, a dialogue box similar to
the one seen in the picture below may appear. This is used
to build a virtual environment; however, we will construct a
virtual environment via the terminal, so cancel it.
Steps
Enterprise
Steps
Enterprise
To open the terminal, click on the icon shown below or use the
command Alt+F12.
Steps
Enterprise
Then, use the commands below to create a venv with Python
3.10.
curl -sS https://bootstrap.pypa.io/get-pip.py |
python3.10
sudo apt install python3.10-venv
python3.10 -m venv your_venv_name
Steps
Enterprise
Steps
Enterprise
You will be able to observe that your virtual environment has
been enabled after closing and reopening the terminal; you will
see the indicator in the terminal as shown below with your venv
name.
Steps
Enterprise
If this does not activate your venv, use the following command.
source your_venv_name/bin/activate
Steps
Enterprise
Install the required Python packages
Odoo requires the installation of various Python packages, which are
stated in the file requirement.txt within the Odoo17 directory. As a
result, run this command in the terminal.
pip install -r requirements.txt
Steps
Enterprise
In case you don't find any errors, you can use the command
below to test whether all of the requirements stated in
requirements.txt have been installed
pip list
Steps
Enterprise
If you run into any errors, go to the requirements.txt file and
install each requirement one by one with the command below.
pip install requirement_name
Steps
Enterprise
In most cases, when installing packages that are specified twice, only
one of them should be installed. So, even if one of them fails to install,
it should not be a problem.
Also, if some prerequisites defined with sys_platform as 'win32' fail to
install, do not install them.
If any errors occur during 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'"
instead, use the command below to install another package.
pip install psycopg2-binary
Steps
Enterprise
Create the odoo.conf file within the Odoo17 directory
You can create conf file by right-clicking the directory and select New
-> File -> odoo.conf
After inserting the following block into the file odoo.conf, you should
update the db_password, which is the password you specified for the
database user Odoo17 in the previous stage.
Steps
Enterprise
[options]
admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = odoo17
db_password = your_password
addons_path = /home/user/odoo17/addons
xmlrpc_port = 8017
Steps
Enterprise
Also, replace the addons_path value using the real path to the
Odoo17 addons directory. You may accomplish this by pressing
Ctrl + Shift + C in the addons directory. You will then be given the
path to the current directory. Replace it in the addons_path. You
may also create a new directory to include your custom modules;
the path to that directory must be supplied in the addons_path,
separated by commas.
eg: addons_path = /home/user/odoo/addons,
/home/user/odoo/custom_addons
Steps
Enterprise
Add Python Interpreter
Go to Settings -> Project: odoo17 -> Python Interpreter to configure a Python
interpreter.
Enterprise
Steps
Enterprise
When you open the aforementioned window, if the interpreter (python
3.10 from Odoo17 venv) is already set up, you don't need to make any
changes. Otherwise, select the Add Interpreter option and make the
following selections.
Steps
Enterprise
When the dialogue box below shows up, click the "+" button and select
"Python" from the list.
After that, you may fill in the fields as seen in the picture below.
Steps
Enterprise
Steps
Enterprise
Name: You are free to give the configuration any name.
Python Interpreter: This project's Python Interpreter needs to be included
here. Because we had set the interpreter in the previous stage, it will fill in
automatically.
Script Path: Choose the "odoo-bin" file from the directory odoo17.
Parameters: You can add parameters here to run with the script; the
parameter -c is necessary, and you can add additional ones. You can also
need to add the conf file in the parameter.
Working location: You must include the location for the project's current
working folder here.
Steps
Enterprise
Step 13: Test Run Odoo 17
Odoo's setup is finished. You may now try it by clicking the button below to
launch the project.
Steps
Enterprise
Steps
Enterprise
You may now test localhost:8017 in your browser. The browser will open the
Odoo database management, as seen below if all of your settings are
successful.
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

What's hot

The digital marketing ppt
The digital marketing pptThe digital marketing ppt
The digital marketing ppt
D&P Mindmax /www.gdmtravel.com
 
Collaboration PowerPoint slides
Collaboration PowerPoint slidesCollaboration PowerPoint slides
Collaboration PowerPoint slides
eisolomon
 
URI handlers
URI handlersURI handlers
URI handlers
sayaleepote
 
YouTube Powerpoint
YouTube PowerpointYouTube Powerpoint
YouTube Powerpoint
AlexanderRichardson
 
WebRTC + Socket.io: building a skype-like video chat with native javascript
WebRTC + Socket.io: building a skype-like video chat with native javascriptWebRTC + Socket.io: building a skype-like video chat with native javascript
WebRTC + Socket.io: building a skype-like video chat with native javascript
Michele Di Salvatore
 
Web development
Web developmentWeb development
Web development
Kanan Rahimov
 
PHP Basic & Variables
PHP Basic & VariablesPHP Basic & Variables
PHP Basic & Variables
M.Zalmai Rahmani
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
pbarasia
 
Understanding the Web Page Layout
Understanding the Web Page LayoutUnderstanding the Web Page Layout
Understanding the Web Page Layout
Jhaun Paul Enriquez
 
Digital marketing & branding agency profile PDF presentation - Upreports
Digital marketing & branding agency profile PDF presentation - UpreportsDigital marketing & branding agency profile PDF presentation - Upreports
Digital marketing & branding agency profile PDF presentation - Upreports
UpReports
 
Javascript basics
Javascript basicsJavascript basics
Javascript basics
shreesenthil
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
Gil Fink
 
android layouts
android layoutsandroid layouts
android layouts
Deepa Rani
 
Content Management System - CMS
 Content Management System - CMS Content Management System - CMS
Content Management System - CMS
Jaime Delgado
 
The six key steps to AEM architecture
The six key steps to AEM architectureThe six key steps to AEM architecture
The six key steps to AEM architecture
Ashokkumar T A
 
How to Use Slideshare
How to Use SlideshareHow to Use Slideshare
How to Use Slideshare
Converting Copy
 
EmpTech Lesson 7 - Online Creation Tools, Platforms, and Applications for ICT...
EmpTech Lesson 7 - Online Creation Tools, Platforms, and Applications for ICT...EmpTech Lesson 7 - Online Creation Tools, Platforms, and Applications for ICT...
EmpTech Lesson 7 - Online Creation Tools, Platforms, and Applications for ICT...
liera silvan
 
Mailchimp presentation
Mailchimp presentationMailchimp presentation
Mailchimp presentation
VAExpert Shane
 
Google Maps API
Google Maps APIGoogle Maps API
Google Maps API
M A Hossain Tonu
 
How to Create a YouTube Channel
How to Create a YouTube ChannelHow to Create a YouTube Channel
How to Create a YouTube Channel
Crackerjack Scribe
 

What's hot (20)

The digital marketing ppt
The digital marketing pptThe digital marketing ppt
The digital marketing ppt
 
Collaboration PowerPoint slides
Collaboration PowerPoint slidesCollaboration PowerPoint slides
Collaboration PowerPoint slides
 
URI handlers
URI handlersURI handlers
URI handlers
 
YouTube Powerpoint
YouTube PowerpointYouTube Powerpoint
YouTube Powerpoint
 
WebRTC + Socket.io: building a skype-like video chat with native javascript
WebRTC + Socket.io: building a skype-like video chat with native javascriptWebRTC + Socket.io: building a skype-like video chat with native javascript
WebRTC + Socket.io: building a skype-like video chat with native javascript
 
Web development
Web developmentWeb development
Web development
 
PHP Basic & Variables
PHP Basic & VariablesPHP Basic & Variables
PHP Basic & Variables
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
Understanding the Web Page Layout
Understanding the Web Page LayoutUnderstanding the Web Page Layout
Understanding the Web Page Layout
 
Digital marketing & branding agency profile PDF presentation - Upreports
Digital marketing & branding agency profile PDF presentation - UpreportsDigital marketing & branding agency profile PDF presentation - Upreports
Digital marketing & branding agency profile PDF presentation - Upreports
 
Javascript basics
Javascript basicsJavascript basics
Javascript basics
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
android layouts
android layoutsandroid layouts
android layouts
 
Content Management System - CMS
 Content Management System - CMS Content Management System - CMS
Content Management System - CMS
 
The six key steps to AEM architecture
The six key steps to AEM architectureThe six key steps to AEM architecture
The six key steps to AEM architecture
 
How to Use Slideshare
How to Use SlideshareHow to Use Slideshare
How to Use Slideshare
 
EmpTech Lesson 7 - Online Creation Tools, Platforms, and Applications for ICT...
EmpTech Lesson 7 - Online Creation Tools, Platforms, and Applications for ICT...EmpTech Lesson 7 - Online Creation Tools, Platforms, and Applications for ICT...
EmpTech Lesson 7 - Online Creation Tools, Platforms, and Applications for ICT...
 
Mailchimp presentation
Mailchimp presentationMailchimp presentation
Mailchimp presentation
 
Google Maps API
Google Maps APIGoogle Maps API
Google Maps API
 
How to Create a YouTube Channel
How to Create a YouTube ChannelHow to Create a YouTube Channel
How to Create a YouTube Channel
 

Similar to How to setup Pycharm environment for Odoo 17.pptx

How to Install Odoo 17 on Ubuntu.pdf
How to Install Odoo 17 on Ubuntu.pdfHow to Install Odoo 17 on Ubuntu.pdf
How to Install Odoo 17 on Ubuntu.pdf
CanditRoot
 
How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?
Celine George
 
How to install odoo 15 steps on a ubuntu 20.04 lts system installation
How to install odoo 15 steps on a ubuntu 20.04 lts system installation How to install odoo 15 steps on a ubuntu 20.04 lts system installation
How to install odoo 15 steps on a ubuntu 20.04 lts system installation
Geminate Consultancy Services
 
Installation Of Odoo 12 On Ubuntu 18.4
Installation Of Odoo 12 On Ubuntu 18.4Installation Of Odoo 12 On Ubuntu 18.4
Installation Of Odoo 12 On Ubuntu 18.4
Varsha Technaureus
 
LIGGGHTS installation-guide
LIGGGHTS installation-guideLIGGGHTS installation-guide
LIGGGHTS installation-guide
Braj Bhushan Prasad
 
How to Install Odoo 11 on Ubuntu 16.04?
How to Install Odoo 11 on Ubuntu 16.04?How to Install Odoo 11 on Ubuntu 16.04?
How to Install Odoo 11 on Ubuntu 16.04?
Celine George
 
Installation of Odoo 16 on Ubuntu 20.04 LTS | Cybrosys
Installation of Odoo 16 on Ubuntu 20.04 LTS | CybrosysInstallation of Odoo 16 on Ubuntu 20.04 LTS | Cybrosys
Installation of Odoo 16 on Ubuntu 20.04 LTS | Cybrosys
Celine George
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
Rajesh Rajamani
 
Python Lecture 0
Python Lecture 0Python Lecture 0
Python Lecture 0
Inzamam Baig
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
vjvarenya
 
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
Umar Yusuf
 
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
Umar Yusuf
 
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
 
Software Instructions
Software InstructionsSoftware Instructions
Software Instructions
Anastasia Khudoyarova
 
CodeShip
CodeShipCodeShip
CodeShip
Bryan Reinbolt
 
How To Install Odoo 16 in Ubuntu 20.4
How To Install Odoo 16  in Ubuntu 20.4How To Install Odoo 16  in Ubuntu 20.4
How To Install Odoo 16 in Ubuntu 20.4
Celine George
 
wxFormBuilder - Tutorial on “A GUI for making GUIs” for Python
wxFormBuilder - Tutorial on “A GUI for making GUIs” for PythonwxFormBuilder - Tutorial on “A GUI for making GUIs” for Python
wxFormBuilder - Tutorial on “A GUI for making GUIs” for Python
Umar Yusuf
 
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
 
Linux for programmers
Linux for programmersLinux for programmers
Linux for programmers
Md. Al Amin
 
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
 

Similar to How to setup Pycharm environment for Odoo 17.pptx (20)

How to Install Odoo 17 on Ubuntu.pdf
How to Install Odoo 17 on Ubuntu.pdfHow to Install Odoo 17 on Ubuntu.pdf
How to Install Odoo 17 on Ubuntu.pdf
 
How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?How to configure PyCharm for Odoo development in Windows?
How to configure PyCharm for Odoo development in Windows?
 
How to install odoo 15 steps on a ubuntu 20.04 lts system installation
How to install odoo 15 steps on a ubuntu 20.04 lts system installation How to install odoo 15 steps on a ubuntu 20.04 lts system installation
How to install odoo 15 steps on a ubuntu 20.04 lts system installation
 
Installation Of Odoo 12 On Ubuntu 18.4
Installation Of Odoo 12 On Ubuntu 18.4Installation Of Odoo 12 On Ubuntu 18.4
Installation Of Odoo 12 On Ubuntu 18.4
 
LIGGGHTS installation-guide
LIGGGHTS installation-guideLIGGGHTS installation-guide
LIGGGHTS installation-guide
 
How to Install Odoo 11 on Ubuntu 16.04?
How to Install Odoo 11 on Ubuntu 16.04?How to Install Odoo 11 on Ubuntu 16.04?
How to Install Odoo 11 on Ubuntu 16.04?
 
Installation of Odoo 16 on Ubuntu 20.04 LTS | Cybrosys
Installation of Odoo 16 on Ubuntu 20.04 LTS | CybrosysInstallation of Odoo 16 on Ubuntu 20.04 LTS | Cybrosys
Installation of Odoo 16 on Ubuntu 20.04 LTS | Cybrosys
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
 
Python Lecture 0
Python Lecture 0Python Lecture 0
Python Lecture 0
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
 
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
 
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!DESKTOP GUI APP DEVELOPMENT USING PYTHON!
DESKTOP GUI APP DEVELOPMENT USING PYTHON!
 
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
 
Software Instructions
Software InstructionsSoftware Instructions
Software Instructions
 
CodeShip
CodeShipCodeShip
CodeShip
 
How To Install Odoo 16 in Ubuntu 20.4
How To Install Odoo 16  in Ubuntu 20.4How To Install Odoo 16  in Ubuntu 20.4
How To Install Odoo 16 in Ubuntu 20.4
 
wxFormBuilder - Tutorial on “A GUI for making GUIs” for Python
wxFormBuilder - Tutorial on “A GUI for making GUIs” for PythonwxFormBuilder - Tutorial on “A GUI for making GUIs” for Python
wxFormBuilder - Tutorial on “A GUI for making GUIs” for Python
 
Princeton Wintersession: Software Quality Assurance Tooling
Princeton Wintersession: Software Quality Assurance ToolingPrinceton Wintersession: Software Quality Assurance Tooling
Princeton Wintersession: Software Quality Assurance Tooling
 
Linux for programmers
Linux for programmersLinux for programmers
Linux for programmers
 
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
 

More from Celine George

How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
Celine George
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
Celine George
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
Celine George
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
Celine George
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Celine George
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
Celine George
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Celine George
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
Celine George
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
Celine George
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
Celine George
 

More from Celine George (20)

How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
 

Recently uploaded

DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 

Recently uploaded (20)

DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 

How to setup Pycharm environment for Odoo 17.pptx

  • 1. How to setup Pycharm environment for Odoo 17 Enterprise
  • 2. Introduction Enterprise Setting up a development environment for odoo using pycharm is highly preferred by odoo developers to develop and debug odoo modules and other related functionalities .
  • 3. Steps Enterprise Install Python 3.10: The most recent Python 3.10 version is not accessible in Ubuntu's default repository. As a result, we must add another repository. Python Packages may be found in the deadsnakes repository on launchpad.
  • 4. Steps Enterprise Using the commands below, add the deadsnakes repository. sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update
  • 5. Steps Enterprise Using this command, you may check the updated Python package list. apt list | grep python3.10 Python 3.10 can be installed using the following command: sudo apt-get install python3.10 The following code may be used to install the required packages for Python3: sudo apt-get install python3-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
  • 6. Steps Enterprise Install web dependencies: Installing the web dependencies is the next step. 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
  • 7. Steps Enterprise Install the wkhtmltopdf: If you want to publish Odoo reports, you must install Wkhtmltopdf, which can be done with the following code. sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/d ownload/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb sudo apt install -f
  • 8. Steps Enterprise Install PostgreSQL Next, we must install PostgreSQL: sudo apt install postgresql postgresql-client
  • 9. Steps Enterprise Configure a Database User Role for Odoo Databases. Create a database user with the following instructions, and specify a password for the separate user because it will be required when creating the conf file, so save it. sudo su - postgres createuser --createdb --username postgres --no- createrole --no-superuser --pwprompt odoo17
  • 10. Steps Enterprise Set the specified user as the superuser. psql ALTER USER odoo17 WITH SUPERUSER; Exit from both psql and the Postgres user. q Exit
  • 11. Steps Enterprise Get Odoo 17 Source Code Odoo 17 Community Source code may be obtained straight from Odoo's Github source. Otherwise, you may clone it from git. Install git and then run the following commands: sudo apt-get install git
  • 12. Steps Enterprise The command below will clone the Odoo code into the Odoo17 directory within your home directory. git clone https://www.github.com/odoo/odoo -- depth 1 --branch 17.0 --single-branch odoo17
  • 13. Steps Enterprise Open the Odoo project in Pycharm Open Pycharm Community and navigate to the Odoo17 directory. After the project is open, a dialogue box similar to the one seen in the picture below may appear. This is used to build a virtual environment; however, we will construct a virtual environment via the terminal, so cancel it.
  • 15. Steps Enterprise To open the terminal, click on the icon shown below or use the command Alt+F12.
  • 16. Steps Enterprise Then, use the commands below to create a venv with Python 3.10. curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 sudo apt install python3.10-venv python3.10 -m venv your_venv_name
  • 18. Steps Enterprise You will be able to observe that your virtual environment has been enabled after closing and reopening the terminal; you will see the indicator in the terminal as shown below with your venv name.
  • 19. Steps Enterprise If this does not activate your venv, use the following command. source your_venv_name/bin/activate
  • 20. Steps Enterprise Install the required Python packages Odoo requires the installation of various Python packages, which are stated in the file requirement.txt within the Odoo17 directory. As a result, run this command in the terminal. pip install -r requirements.txt
  • 21. Steps Enterprise In case you don't find any errors, you can use the command below to test whether all of the requirements stated in requirements.txt have been installed pip list
  • 22. Steps Enterprise If you run into any errors, go to the requirements.txt file and install each requirement one by one with the command below. pip install requirement_name
  • 23. Steps Enterprise In most cases, when installing packages that are specified twice, only one of them should be installed. So, even if one of them fails to install, it should not be a problem. Also, if some prerequisites defined with sys_platform as 'win32' fail to install, do not install them. If any errors occur during 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'" instead, use the command below to install another package. pip install psycopg2-binary
  • 24. Steps Enterprise Create the odoo.conf file within the Odoo17 directory You can create conf file by right-clicking the directory and select New -> File -> odoo.conf After inserting the following block into the file odoo.conf, you should update the db_password, which is the password you specified for the database user Odoo17 in the previous stage.
  • 25. Steps Enterprise [options] admin_passwd = admin db_host = localhost db_port = 5432 db_user = odoo17 db_password = your_password addons_path = /home/user/odoo17/addons xmlrpc_port = 8017
  • 26. Steps Enterprise Also, replace the addons_path value using the real path to the Odoo17 addons directory. You may accomplish this by pressing Ctrl + Shift + C in the addons directory. You will then be given the path to the current directory. Replace it in the addons_path. You may also create a new directory to include your custom modules; the path to that directory must be supplied in the addons_path, separated by commas. eg: addons_path = /home/user/odoo/addons, /home/user/odoo/custom_addons
  • 27. Steps Enterprise Add Python Interpreter Go to Settings -> Project: odoo17 -> Python Interpreter to configure a Python interpreter.
  • 29. Steps Enterprise When you open the aforementioned window, if the interpreter (python 3.10 from Odoo17 venv) is already set up, you don't need to make any changes. Otherwise, select the Add Interpreter option and make the following selections.
  • 30. Steps Enterprise When the dialogue box below shows up, click the "+" button and select "Python" from the list. After that, you may fill in the fields as seen in the picture below.
  • 32. Steps Enterprise Name: You are free to give the configuration any name. Python Interpreter: This project's Python Interpreter needs to be included here. Because we had set the interpreter in the previous stage, it will fill in automatically. Script Path: Choose the "odoo-bin" file from the directory odoo17. Parameters: You can add parameters here to run with the script; the parameter -c is necessary, and you can add additional ones. You can also need to add the conf file in the parameter. Working location: You must include the location for the project's current working folder here.
  • 33. Steps Enterprise Step 13: Test Run Odoo 17 Odoo's setup is finished. You may now try it by clicking the button below to launch the project.
  • 35. Steps Enterprise You may now test localhost:8017 in your browser. The browser will open the Odoo database management, as seen below if all of your settings are successful.
  • 36. 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