Deploy module on on-premise
Install O'Chat on your self-hosted Odoo server.
Prerequisites
| Requirement | Details |
|---|---|
| Odoo Version | 17.0, 18.0 or 19.0 |
| Edition | Community or Enterprise |
| Python dependency | pycryptodome |
| Server access | SSH or direct access to the Odoo server |
There are two ways to deploy O'Chat on an on-premise server: downloading from the Odoo Apps Store, or cloning the Git repository.
Step 1: Install the Python dependency
O'Chat requires the pycryptodome library for end-to-end encryption. Install it in the same Python environment that runs Odoo:
pip install pycryptodomeVirtual environment
If Odoo runs in a virtual environment, make sure to activate it first before running pip install.
Option A: Download from the Apps Store
1. Download the module
- Go to the Odoo Apps Store
- Search for "O'Chat"
- Select the version matching your Odoo instance (17, 18 or 19)
- Click the "Download" button to get the ZIP file
2. Deploy to your server
- Copy the ZIP file to your server
- Extract it into your custom addons directory:
unzip ochat.zip -d /opt/odoo/custom_addons/3. Update and restart Odoo
Update the module list using the odoo-bin command and then restart the service:
./odoo-bin -u all -d <your_database> --stop-after-initThen restart your Odoo server using the method appropriate for your setup (e.g. systemd, supervisor, manual process, etc.).
Option B: Clone the Git repository
1. Clone the repository
Clone the O'Chat repository into a dedicated directory on your server:
git clone <repository-url> /opt/odoo/ochat2. Add the directory as an addons source
Edit your Odoo configuration file (usually /etc/odoo/odoo.conf) and add the directory to the addons_path:
addons_path = /opt/odoo/odoo/addons,/opt/odoo/custom_addons,/opt/odoo/ochat3. Update and restart Odoo
Update the module list using the odoo-bin command and then restart the service:
./odoo-bin -u all -d <your_database> --stop-after-initThen restart your Odoo server using the method appropriate for your setup (e.g. systemd, supervisor, manual process, etc.).
Git advantage
Using Git makes it easier to update the module later. Simply run git pull and restart Odoo to get the latest version.
Install the module in Odoo
Once the files are on your server, install the module from the Odoo interface:
- Log in to Odoo as an administrator
- Enable Developer Mode (Settings → Developer Tools → Activate Developer Mode)
- Go to Apps
- Click Update Apps List and confirm
- Search for "O'Chat"
- Click Install
Helpdesk integration
If you have the Helpdesk module installed, the O'Chat Helpdesk extension will be installed automatically. This adds the /ticket command to O'Chat channels.
Verify the installation
- Go to Discuss (the chat icon in the top menu)
- You should see a new O'Chat category in the left sidebar
- The category will be empty until you create connections
You're all set!
O'Chat is installed. You can now set up the module to register your instance and start communicating.
Troubleshooting
Module not found after update
Make sure the module directory is listed in your addons_path in the Odoo configuration file, and that you restarted the Odoo service after making changes.
Permission errors
Ensure the Odoo system user has read access to the module directory:
chown -R odoo:odoo /opt/odoo/custom_addons/ochatpycryptodome import error
Make sure pycryptodome is installed in the same Python environment that runs Odoo:
# Find Odoo's Python
which python3
# Install in that environment
/path/to/odoo/python -m pip install pycryptodome