Build an Odoo development environment under Windows

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
    insert image description here

  • Refer to the figure below to configure permissions for the created user
    insert image description here

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
    insert image description here

  • Configure Pycharm
    insert image description here
    insert image description here

  • 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
    insert image description here
  • When the following words appear on the console, open the browser and enter http://127.0.0.1:8069
    insert image description here
    insert image description here

At this point, the deployment of the entire environment is complete.

Guess you like

Origin blog.csdn.net/jinba225/article/details/123655649