Video summary
How to Install Odoo 18 with Pycharm | Setup Odoo 18 Development Environment Using Pycharm in Ubuntu
Main summary
Key takeaways
Overview
This tutorial video walks through setting up an Odoo 18 development environment on Ubuntu 20.04/22.04 using PyCharm. It covers:
- Installing prerequisites (IDE, Python runtime, Node tooling)
- Setting up PostgreSQL credentials/users
- Cloning the Odoo 18 source code
- Creating a Python virtual environment
- Installing Python dependencies
- Creating an
odoo-bin/ Odoo config file - Launching Odoo locally via the web interface
Odoo 18 tech overview (as stated)
The video positions Odoo 18 as the “latest” Odoo version and describes its stack as:
- Python 3.10 for the backend (as stated in the video)
- PostgreSQL as the database
- JavaScript for the frontend
It also notes Ubuntu 20.04 LTS as a stable choice, with regular updates and security patches.
System requirements for PyCharm (provided in the video)
- Memory
- 4GB minimum
- 8GB recommended
- CPU
- Modern multi-core CPU (mentions multithreading benefits)
- Disk
- About 3.5GB minimum (or ~5GB free on SSD mentioned)
- Display
- 1024×768 minimum / 920×1080 recommended (wording is inconsistent in subtitles)
- OS
- 64-bit Windows/Mac/Linux (examples mentioned: Windows 10+, Windows Server, Ubuntu, etc.)
Step-by-step setup covered
1) Install PyCharm
- Installs PyCharm Community Edition (free) using terminal-based APT commands / snap-style method
- Uses terminal commands to:
- update/upgrade system packages
- install PyCharm community edition
2) Install Python 3.12 (not default in Ubuntu repos)
- Adds the deadsnakes PPA
- Installs Python 3.12
- Installs additional tools needed for Odoo development, including:
- web dependencies (via
apt-get, and mentions npm) - Node.js tooling via
npm(subtitles are partially unclear; mentions something likenpm install -g less/ CSS-related tooling) - wkhtmltopdf (explicitly mentioned for report generation)
- web dependencies (via
3) Install PostgreSQL and configure Odoo DB user
- Installs:
- PostgreSQL
- PostgreSQL client
- Enters the PostgreSQL shell
- Creates/configures a database user for Odoo
- Grants required privileges (subtitles mention “super user” / altering privileges)
4) Get the Odoo 18 source code
- Installs git (if needed)
- Clones Odoo from GitHub:
- clones the Odoo 18 branch into an Odoo 18 folder
- Notes that cloning can take time due to downloading packages/files
5) Open the Odoo project in PyCharm
- Opens the cloned Odoo directory as a PyCharm project
- Uses PyCharm UI steps to select the project and enables “trust project” (wording varies in subtitles)
6) Create and activate a Python virtual environment inside PyCharm
- Mentions using curl via snap if it’s missing initially
- Creates a venv using Python 3.12 inside the PyCharm terminal
- Activates the virtual environment (subtitles reference the venv name/intent, e.g., “when o18” / “venv” — meaning create + activate the venv)
7) Install Odoo Python dependencies
- Installs dependencies from the Odoo source directory:
- references a
requirements.txt - runs
pip install -r ...
- references a
- Verifies installation using
pip list - Mentions error handling:
- if some packages fail (e.g., Pillow), install problematic packages individually with
pip install <package>
- if some packages fail (e.g., Pillow), install problematic packages individually with
8) Create Odoo configuration file (odoo.conf)
- Creates an Odoo config file named like
odoo.conf - Includes key settings such as:
- admin/master password
- DB host, DB port, DB user, DB password
- addons path (updated to point to the correct Odoo addons directories)
- Adds Enterprise addons path (explicitly mentioned as needing to be loaded/copy the Enterprise path into the addons configuration)
9) Configure PyCharm run configuration for Odoo
In PyCharm settings, the tutorial sets:
- Python interpreter
- Python 3.12 venv / selected interpreter
- Run configuration script:
- points to
odoo-bin
- points to
- Script parameters:
- includes
-c odoo.conf
- includes
- Working directory:
- points to the Odoo folder
10) Start Odoo locally and initialize database
- Runs Odoo using a local URL:
http://localhost:<port>- subtitles show port 8018
- Prompts to set/change:
- master/admin password
- database name
- admin email/username + password
- optionally enable demo data
- Then logs in and activates apps/modules (shows Sales and its dependent modules being activated)
Main speakers/sources
- Tutorial author (single speaker): “hello everyone welcome back to …” from C brosis / Cbrosis (channel name appears as “C brosis” in subtitles)
- Sources of dependencies/tooling:
- JetBrains (PyCharm)
- Odoo GitHub repository
- deadsnakes PPA
- PostgreSQL
- Node/npm
- wkhtmltopdf