8000 GitHub - abdalazeim/odoo17: How to Install Odoo 17 on Ubuntu 22 &24
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

abdalazeim/odoo17

Repository files navigation

Build Status Tech Doc Help Nightly Builds

Odoo


Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Additional mods from me

How to Install Odoo 17 on Ubuntu 22.04 &24


Step 1 – Install Required Dependencies

Odoo is a Python-based software

sudo apt-get install -y python3-pip python3-dev python3-venv libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev build-essential libssl-dev libffi-dev libmysqlclient-dev libjpeg-dev libpq-dev libjpeg8-dev liblcms2-dev libblas-dev libatlas-base-dev -y

Next, install the NPM package manager.

sudo apt install nodejs

sudo apt-get install -y npm

Then, install other dependencies using NPM.

sudo npm install -g less less-plugin-clean-css

Next, install the node-less package.

sudo apt-get install -y node-less

Next, download wkhtmltopdf package and install it using the following command:

sudo apt install wkhtmltopdf -y

sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb

sudo apt install -f

Step 2 – Install PostgreSQL

Odoo uses PostgreSQL as a database backend. You can install it using the following command

sudo apt-get install postgresql -y

sudo systemctl status postgresql

sudo su - postgres -c "createuser -s odoo17"

sudo -u postgres psql

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo17

psql

ALTER USER odoo17 WITH SUPERUSER;

\q

exit

Next, create a user for Odoo using the following command:

First, log in as an Odoo user and download the Odoo 17 using the following command:

useradd -m -U -r -d /opt/odoo17 -s /bin/bash odoo17

su - odoo17

sudo git clone https://www.github.com/abdalazeim/odoo17 --depth 1 --branch 17.0 /opt/odoo17/

Next, create a Python virtual environment for Odoo

cd /opt/odoo17

python3 -m venv odoo17-venv

Next, activate the virtual environment.

source odoo17-venv/bin/activate

Next, update the pip to the latest version.

pip install --upgrade pip

Next, install the Weel package.

pip3 install wheel

Next, install additional Python dependencies.

pip3 install -r requirements.txt

Finally, deactivate from the Python virtual environment

deactivate

Also, log out of the Odoo user.

Exit

Next, create a directory to store Odoo addons and give it proper ownership.

sudo mkdir /opt/odoo17/odoo17-custom-addons

sudo chown -R odoo17:odoo17 /opt/odoo17/odoo17-custom-addons

Next, create a log directory and file for Odoo and set proper permissions.

sudo mkdir -p /var/log/odoo17

sudo touch /var/log/odoo17/odoo17.log

sudo chown -R odoo17:odoo17 /var/log/odoo17

Next, create an Odoo configuration file.

sudo nano /etc/odoo17.conf

Add the following lines:

[options]

admin_passwd = admin@123

db_host = False

db_port = False

db_user = odoo17

db_password = False

xmlrpc_port = 8069

logfile = /var/log/odoo17/odoo17.log

addons_path = /opt/odoo17/addons,/opt/odoo17/odoo17-custom-addons

Step 4 – Create a Systemd File for Odoo

You will also need to create a system file to manage the Odoo service.

sudo nano /etc/systemd/system/odoo17.service

Add the following lines:

[Unit]

Description=odoo17

After=network.target postgresql@14-main.service

[Service]

Type=simple

SyslogIdentifier=odoo17

PermissionsStartOnly=true

User=odoo17

Group=odoo17

ExecStart=/opt/odoo17/odoo17-venv/bin/python3 /opt/odoo17/odoo-bin -c /etc/odoo17.conf

StandardOutput=journal+console

[Install]

WantedBy=multi-user.target

Save the file, then reload the systemd daemon.

sudo systemctl daemon-reload

Now, start and enable the Odoo service.

sudo systemctl start odoo17

Step 5 – Access Odoo Web Interface

At this point, Odoo has started listening on port 8069. You can now access it using the URL http://your-server-ip:8069. You # # will see the following screen.

  • Access Odoo Web Interface:

    ScrennShot

    • The Odoo dashboard:

      ScrennShot

  • Open HRMS Core:

    ScrennShot

    • Billing &Full Accounting:

      ScrennShot

  • Auto Database Backup:

    ScrennShot

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

About

How to Install Odoo 17 on Ubuntu 22 &24

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0