Environmental preparation
- Windows10
- python-3.8
- pycharm-V2021.1.2 Community
- postgresql-V13
- git
- odoo source code
Installation Precautions
- When installing Python, you need to check Add Python3.8 to PATH
- When installing Postgresql, you need to enter the super user password, which will be used when configuring Odoo. The recommended port is 5432
Create database user
-
Open pgadmin4 and create a user
-
Refer to the figure below to configure permissions for the created user
Configure Pycharm and start Odoo
-
Start Pycharm, open the odoo folder
-
Copy the odoo.conf in the debian folder to the odoo root directory
-
Modify the configuration file according to the actual configuration
-
Configure Pycharm
-
Install the odoo dependency package
// 切换到odoo目录下,打开命令窗口运行以下命令
pip install -r requirements.txt -i https://pypi.douban.com/simple
Note: Sometimes a compilation error will be reported during installation, and the runtime library required for compilation needs to be installed first. click to download
- run Odoo
- When the following words appear on the console, open the browser and enter http://127.0.0.1:8069
At this point, the deployment of the entire environment is complete.