odoo / docker

Other
931 stars 1.51k forks source link

Module cannot be found uploaded in the path from default Docker image. Instead one level below. #403

Open markotitel opened 2 years ago

markotitel commented 2 years ago

Impacted versions:

Version 15.

Steps to reproduce:

Run Fargate task with default Odoo image from Docker hub. Odoo process logs:

INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons','/var/lib/odoo/addons/15.0', '/mnt/extra-addons']

Mount EFS share to Odoo Fargate service.

Use EC2 instance to mount EFS and unpack module.zip into location reported from the Odoo process from the logs. Module would be here: /var/lib/odoo/addons/15.0/module/

In Developer Mode Update App List.

Current behavior: No new module is found.

Expected behavior: Display new module in Odoo Admin Apps List.

NOTE If I move module one dir below then module is found. Dir hierarchy:

/var/lib/odoo/addons/module/ /var/lib/odoo/addons/15.0/`

lathama commented 3 months ago

Looking over old issues, from https://github.com/docker-library/docs/blob/master/odoo/content.md#mount-custom-addons you can put your addons in the volume which is mounted at /mnt/extra-addons