简体   繁体   English

使用 Docker 在 Odoo V.15 上安装插件

[英]Install addons on Odoo V.15 with Docker

I am trying to install custom modules from OCA GitHub to my initial setup which is installed via Docker container.我正在尝试将自定义模块从 OCA GitHub 安装到通过 Docker 容器安装的初始设置中。

I am quite lost on how to perform to install the modules in my environment.我对如何在我的环境中安装模块非常迷茫。 I have done my initial odoo setup up and running via https://www.digitalocean.com/community/tutorials/how-to-install-odoo-on-ubuntu-20-04-with-docker .我已经通过https://www.digitalocean.com/community/tutorials/how-to-install-odoo-on-ubuntu-20-04-with-docker完成了我的初始 odoo 设置并运行。

The system is up and running without issue but I am not able to install custom modules from third parties like OCA.系统已启动并正常运行,但我无法从 OCA 等第三方安装自定义模块。

My docker-compose.yml file:我的 docker-compose.yml 文件:

version: '3'
services:
  odoo:
    image: odoo:15.0
    env_file: .env
    depends_on:
      - postgres
    ports:
      - "127.0.0.1:8069:8069"
    volumes:
      - data:/var/lib/odoo
      - ./addons:/mnt/extra-addons

  postgres:
    image: postgres:13
    env_file: .env
    volumes:
      - db:/var/lib/postgresql/data/pgdata

volumes:
  data:
  db:

File Directory right now:现在的文件目录:

./addons  ----> I am placing the module files inside this folder.
./docker-compose.yml

then I run the docker-compose up -d then I go to odoo and update list but cannot see the modules.然后我运行 docker docker-compose up -d然后我去 odoo 并更新列表但看不到模块。

Thank you.谢谢你。

You need to add /mnt/extra-addons to the addons_path parameter in Odoo configuration file ( odoo.conf ).您需要将/mnt/extra-addons添加到 Odoo 配置文件 ( odoo.conf ) 中的addons_path参数中。

For example:例如:

addons_path = /usr/lib/python3/dist-packages/odoo/addons,/mnt/extra_addons

You have to enable developer mode and then go to Apps and press Update App List to update the list of apps.您必须启用developer mode ,然后转到Apps并按Update App List以更新应用程序列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM