Developer Install on Linux
Installation of PBMS on developer machine
Developers can run the entire OpenG2P package on their machines. The guide here provides steps to install OpenG2P on a laptop/desktop running on Linux.
Prerequisites
A Linux server
Python3
Git
PostgreSQL
Installation of Odoo 15.0
1. Update system packages
Log in to your Linux server using SSH and update the package list and upgrade the existing packages:
sudo apt update
sudo apt upgrade -y2. Install dependencies
Odoo requires several dependencies to function correctly. Install them using the following commands:
sudo apt install -y python3-pip python3-dev build-essential libxml2-dev libxslt1-dev libevent-dev libsasl2-dev libldap2-dev libpq-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev libopenjp2-7-dev libtiff5-dev libffi-dev nodejs npm3. Create Odoo user
It is recommended to create a separate system user to run Odoo for security purposes. Create the user with the following command:
sudo adduser --system --home=/opt/odoo --group odoo
4. Install and configure PostgreSQL
Install PostgreSQL server and create a new database user for Odoo:
sudo apt install -y postgresql sudo su - postgres createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo_user exit
5. Install Wkhtmltopdf
Odoo supports printing report files in PDF format. Wkhtmltopdf helps to generate reports in PDF format from HTML data format. Moreover, the Qweb template reports are converted to HTML format by the report engine and Wkhtmltopdf will produce reports in PDF format:
6. Install Odoo
Clone the odoo15 repository from the official GitHub repository:
Cloning the odoo15 repository takes time because of the large file.
Make a new Odoo Python virtual environment:
Turn on the virtual environment:
Switch to the odoo15 directory and install the required Python libraries:
7. Configure Odoo
Edit the configuration file
/opt/odoo/odoo15/debian/odoo.confand set the appropriate values for the following parameters:
Inside the customs addons directories, place the relevant project module and custom third-party modules.
8. Start Odoo
Start the Odoo server using the following command:
Installation of Odoo 17.0
1. Update system packages
Log in to your Linux server using SSH and update the package list and upgrade the existing packages:
2. Install dependencies
Odoo requires several dependencies to function correctly. Install them using the following commands:
3. Create Odoo user
It is recommended to create a separate system user to run Odoo for security purposes. Create the user with the following command:
4. Install and configure PostgreSQL
Install PostgreSQL server and create a new database user for Odoo:
5. Install Wkhtmltopdf
Odoo supports printing report files in PDF format. Wkhtmltopdf helps to generate reports in PDF format from HTML data format. Moreover, the Qweb template reports are converted to HTML format by the report engine and Wkhtmltopdf will produce the report in PDF format:
6. Install Odoo
Clone the odoo17 repository from the official GitHub repository:
Cloning the odoo17 repository takes time because of the large file.
Make a new Odoo Python virtual environment:
Turn on the virtual environment:
Switch to the odoo17 directory and install the required Python libraries:
7. Configure Odoo
Edit the configuration file
/opt/odoo/odoo17/debian/odoo.confand set the appropriate values for the following parameters:
Inside the customs addons directories, place the relevant project module and custom third-party modules.
8. Start Odoo
Start the Odoo server using the following command:
Installation of OpenG2P package
Create a
custom-addonsfolder inside theodoofolder to keep all the extra modules.Clone all the OpenG2P modules:
Install the required Python libraries for all the custom-addons:
Add addons directory path to the odoo.conf file in addons_path parameter, mentioned in point 7.
Last updated
Was this helpful?

