Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

How do i acces odoo files (such installed addons folder) ?

形象
odoo
形象
丢弃
2 答案
0
形象
odoo
最佳答案

You have to specify volumes in your docker-compose to make the data persistent. You can access the data in these volumes either in a local directory or in the specified volume.

Local directory in the project directory where your docker-compose.yml is located:

services:   
    odoo:
    container_name: odoo-15
    image: odoo:15
        volumes:
            - ./config:/etc/odoo
      - ./extra-addons:/mnt/extra-addons
      - ./data:/var/lib/odoo
    ...

    If you are using volumes you need to create the volumes first:

docker volume create 

 Then you can use these volumes to bind your data: 

services:
    odoo:
    container_name: odoo-15
    image: odoo:15
        volumes:
            - odoo-config:/etc/odoo
      - odoo-addons:/mnt/extra-addons      
            - odoo-data:/var/lib/odoo

    ...     
volumes:    
    odoo-config:        
    odoo-addons:     odoo-data:

形象
丢弃
0
形象
odoo
最佳答案

Thank you for the answer, well i just figured that the folder where I can find the source code folder is located in " /usr/lib/python3/dist-packages/odoo/ " it's my first time using odoo but apparently it's not really recomended to modify odoo directly in the source code

形象
丢弃