This guide provides instructions for setting up Odoo, creating a new PostgreSQL database, and running the server. It also includes troubleshooting tips for common issues.
- Python 3.x
- PostgreSQL
- Odoo 17 source code
First, install necessary system packages:
sudo apt-get update
sudo apt-get install git python3-pip build-essential wget python3-dev python3-venv libpq-dev libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev libjpeg-dev libjpeg8-dev liblcms2-dev libblas-dev libatlas-base-dev
sudo apt-get install postgresql
sudo systemctl start postgresql
sudo systemctl enable postgresql
sudo -u postgres createuser -s odoo
sudo -u postgres createdb odoo_db -O odoo
sudo -u postgres psql
postgres=# \password odoo
Enter new password:
postgres=# \q
# git clone https://github.com/odoo/odoo.git --branch 17.0 --depth=1
cd odoo
#### Create and Activate a Virtual Environment
```bash
# python3 -m venv odoo-venv
source odoo-venv/bin/activate
pip install -r requirements.txt
./odoo-bin -c odoo.conf
Open your web browser and go to http://localhost:8081
.
Press Ctrl+C
in the terminal where the server is running.
If the server is not stopping properly, you can kill the processes:
sudo pkill -f odoo
./odoo-bin -c odoo.conf
- Server Not Starting: Ensure PostgreSQL is running and that the Odoo configuration file (
odoo.conf
) has the correct database user and password. - Port Conflicts: If Odoo is not starting due to port conflicts, ensure no other services are running on port 8069.
This guide provides the necessary steps to set up and run Odoo with the custom RFQ module. Follow the instructions carefully, and refer to the troubleshooting tips if you encounter any issues. If you need further assistance, consult the Odoo documentation.# extended_odoo2