External modules (addons) are a powerful tool that lets you extend Odoo far beyond its standard capabilities. With them, you can tailor your ERP to your company's specific needs by adding new features or modifying existing ones.
What Are External Modules in Odoo?
External modules are additional extensions that are not part of the standard Odoo installation. They can come from the Odoo App Store, community repositories (such as OCA - Odoo Community Association), or be built by third-party developers. Installing external modules opens up nearly unlimited possibilities for customizing your system.
Before installing external modules, make sure your Odoo installation meets the appropriate system requirements and is properly configured.
Methods for Installing External Modules
Method 1: Installation via the Web Interface (Odoo Apps)
The simplest way to install external modules in Odoo is to use the built-in app store:
- Log in to your Odoo instance as an administrator
- Go to the Apps menu in the top navigation
- Click "Update Apps List" to refresh the available modules
- Search for the module you need using the search bar
- Click "Install" next to the selected module
This method works great for modules available in the official Odoo App Store, but it requires internet access and an Odoo Enterprise account for paid extensions.
Method 2: Manual Installation via the File System
For modules downloaded from external sources, manual installation is required. This is the most universal method of installing external modules:
Step 1: Preparing the addons directory
First, create a dedicated directory for external modules, for example:
mkdir /opt/odoo/custom-addons
chown odoo:odoo /opt/odoo/custom-addons
chmod 755 /opt/odoo/custom-addons
Step 2: Downloading and placing the module
Download the module from your chosen source (GitHub, Odoo Apps Store, etc.) and place it in the custom-addons directory:
cd /opt/odoo/custom-addons
git clone https://github.com/[nazwa-repozytorium]/[nazwa-modulu].git
Or copy the extracted module directory straight into this folder. Make sure the structure is correct - the module directory should contain the __manifest__.py file and the remaining Python files.
Note: Some modules require additional Python libraries. Check the requirements.txt file in the module directory and install the dependencies:
pip3 install -r /opt/odoo/custom-addons/[nazwa-modulu]/requirements.txt
Step 3: Configuring the odoo.conf file
Edit the Odoo configuration file (usually located at /etc/odoo/odoo.conf) and add the path to the directory containing the external modules:
addons_path = /usr/lib/python3/dist-packages/odoo/addons,/opt/odoo/custom-addons
If you already have an addons_path defined, add the new path after a comma. The order matters - Odoo searches the directories from left to right.
Step 4: Restarting the Odoo server
After changing the configuration, you need to restart the Odoo server:
sudo systemctl restart odoo
For installations on Windows the restart process is different - use the Windows Services manager.
Step 5: Updating the apps list
In the Odoo interface:
- Enable developer mode (Settings → Activate the developer mode) or add
?debug=1to the URL - Go to Apps
- Click the menu icon (three dots) and select "Update Apps List"
- Confirm the update
- Remove the default search filter to see all modules
Your external module should now appear in the list of available apps. You can also install the module directly from the command line:
odoo-bin -c /etc/odoo/odoo.conf -d nazwa_bazy -i nazwa_modulu --stop-after-init
Method 3: Installation in a Docker Environment
If you use an Odoo installation via Docker, installing external modules requires modifying the container configuration:
Create a directory for external modules on the host and mount it as a volume. Here is an example docker-compose.yml file for Odoo 19:
version: '3.8'
services:
web:
image: odoo:19
depends_on:
- db
ports:
- "8069:8069"
volumes:
- ./addons:/mnt/extra-addons
- odoo-web-data:/var/lib/odoo
environment:
- HOST=db
- USER=odoo
- PASSWORD=odoo
command: -- --dev=all
db:
image: postgres:15
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
volumes:
- odoo-db-data:/var/lib/postgresql/data
volumes:
odoo-web-data:
odoo-db-data:
Place external modules in the local ./addons directory and they will be automatically made available in the Odoo container at /mnt/extra-addons. The --dev=all parameter enables developer mode, which makes working with modules easier.
Verifying the Installation of External Modules
Once the installation is complete, check that the module works correctly:
- Check the Odoo logs for errors related to the module (
sudo journalctl -u odoo -fon Linux systems with systemd) - Test the basic features added by the module
- Check dependencies - make sure all required modules are installed
- Verify compatibility with your Odoo version (currently Odoo 19)
- Check access rights - some modules require specific user groups
Best Practices for Installing External Modules
Testing in a development environment
Never install unfamiliar modules directly in production. Always test new modules in a test environment with a copy of the production database. Odoo offers built-in tools for duplicating databases, which makes setting up test environments easier.
Creating backups
Before installing any external module, make a full backup of the database. This lets you quickly return to the pre-installation state if problems occur. Remember to also copy the filestore directory, which contains attachments and files.
Verifying the module source
Install modules only from trusted sources such as:
- The official Odoo Apps Store
- OCA (Odoo Community Association) - GitHub repositories with high quality standards
- Well-known developers with a good reputation and active repositories
- Your own in-house modules
Before installing, check:
- The module's license (LGPL, AGPL, OPL - Odoo Proprietary License)
- The date of the last update
- The number of installations and user reviews
- Documentation and technical support
Documenting dependencies
Keep documentation of the installed external modules along with their versions and dependencies. This will make future migrations and troubleshooting easier. You can use a requirements.txt file or a spreadsheet to track:
- Module names
- Versions and Git commits
- Origin source
- Dependencies on other modules
- Python dependencies
Module updates
Regularly check for updates to the installed modules. Updates often include security fixes and new features. However, remember to test updates in a development environment before deploying them to production.
Troubleshooting Common Issues
The module does not appear in the list
If the module is not visible in Apps after installation:
- Check that addons_path is correctly configured in the odoo.conf file
- Verify the permissions on the module directories (the odoo user should have access) - use
ls -lato check - Make sure the module's directory structure is correct (it contains the
__manifest__.pyfile in the module's root directory) - Check the server logs for errors when loading modules -
grep ERROR /var/log/odoo/odoo-server.log - Make sure the 'installable' field in
__manifest__.pyis set to True - Check that the version in the manifest matches your Odoo version (e.g. '19.0.1.0.0' for Odoo 19)
- On systems with SELinux, check the security context:
ls -Z /opt/odoo/custom-addons
Dependency errors
External modules often require other modules. If dependency errors appear:
- Check the
__manifest__.pyfile in the module directory - Install all the required modules listed in the 'depends' section
- Make sure the module versions are compatible
- Check that the required modules are available in your Odoo version
- Install any missing Python libraries from the requirements.txt file
- Some modules may require system libraries - check the module's documentation
Database issues
If installing a module causes database problems, make sure that PostgreSQL is properly configured and that the Odoo user has the appropriate permissions. Also check:
- Whether the database user has permission to create tables and modify the schema
- Whether the database is locked by other processes
- Whether you have enough disk space
- PostgreSQL logs in /var/log/postgresql/ may contain error details
SELinux permission issues
On systems with SELinux enabled (Red Hat, CentOS, Fedora) you may run into directory access problems:
sudo semanage fcontext -a -t httpd_sys_rw_content_t "/opt/odoo/custom-addons(/.*)?"
sudo restorecon -Rv /opt/odoo/custom-addons
Advanced Installation Techniques
Installing from GitHub
Many useful modules are hosted in GitHub repositories. You can install them directly:
cd /opt/odoo/custom-addons
git clone -b 19.0 https://github.com/OCA/[repository-name].git
cd [repository-name]
git checkout 19.0 # Dla Odoo 19
OCA (Odoo Community Association) maintains modules for each Odoo version in separate branches (e.g. 16.0, 17.0, 18.0, 19.0). Always use the branch that matches your Odoo version.
Managing multiple addons directories
You can organize modules into multiple directories for a better structure:
addons_path = /usr/lib/python3/dist-packages/odoo/addons,/opt/odoo/custom-addons,/opt/odoo/third-party-addons,/opt/odoo/internal-addons
This organization allows you to:
- Separate external modules from internal ones
- Manage updates more easily
- Get better version control through Git
- Make backups more simply
Automation with Git submodules
For advanced users, Git submodules allow elegant dependency management:
cd /opt/odoo/custom-addons
git init
git submodule add -b 19.0 https://github.com/OCA/web.git
git submodule add -b 19.0 https://github.com/OCA/server-tools.git
FAQ - Frequently Asked Questions
Is installing external modules safe?
Installing external modules is safe, provided they come from trusted sources. Modules have access to your database and can perform operations on behalf of the system, so always review the module's code or install only from official repositories such as OCA or the Odoo Apps Store. We also recommend testing in a development environment before deploying to production. Pay particular attention to:
- The permissions the module requires
- The data operations it performs
- External network connections
- Regular security audits of installed modules
Are external modules compatible with different Odoo versions?
No, external modules are usually built for a specific Odoo version and are not compatible across versions. A module created for Odoo 16 will not work on Odoo 17, 18 or 19 without appropriate code migration. Always check the module's compatibility with your Odoo version before installing. In the __manifest__.py file you will find the supported version in the 'version' field (e.g. '19.0.1.0.0' means Odoo 19) or in the 'installable' field (it should be True). When migrating between Odoo versions, you must also update all installed external modules to the appropriate versions.
What should I do if an external module causes problems with Odoo?
If an external module causes problems, the best solution is to uninstall it immediately. Go to Apps, find the problematic module and click "Uninstall". If the system is not responding, you can:
- Start Odoo in safe mode (add
--load=base,webto the startup command) - Remove the module directly from the addons directory and restart the server
- Uninstall the module from the command line:
odoo-bin -c /etc/odoo/odoo.conf -d nazwa_bazy -u nazwa_modulu --stop-after-init - In extreme cases, restore an earlier database backup
Always check the Odoo logs (sudo journalctl -u odoo -n 100) to identify the source of the problem. You can also raise the logging level to 'debug' in the configuration file.
Can I install paid modules from the Odoo Apps Store?
Yes, paid modules from the Odoo Apps Store can be installed directly through the web interface if you have an Odoo Enterprise subscription and a connected account. After purchase, the module is automatically available in the Apps section of your instance. For the Community edition, you can buy modules directly from the developers - you will then receive files for manual installation. Remember to check the module's license (OPL - Odoo Proprietary License for commercial modules, LGPL or AGPL for open-source modules) and the technical support terms.
Summary
Installing external modules in Odoo is a key skill for making full use of the potential of this ERP system. The methods presented - from simple installation through the web interface, through manual installation in the file system, to configuration in a Docker environment - give you full control over extending Odoo's functionality.
Remember to follow best practices: always test in a development environment, make backups before every installation, install modules only from trusted sources, and update them regularly. Properly installing and managing external modules will let you build an ERP system perfectly matched to your organization's needs, whether you are working on the latest Odoo 19 or on older versions.
Key takeaways:
- Always check that the module's version is compatible with your Odoo version
- Document all installed modules and their dependencies
- Use developer mode to test new modules
- Monitor the system logs after each installation
- Update modules regularly, especially for security reasons
Need help installing external modules or adapting Odoo to your company's specific needs? Contact the experts at KK Innovations! Our team of specialists will help you choose the right modules, install them securely, and fully configure your Odoo system. We provide professional technical support and consulting at every stage of implementation.