doodba icon indicating copy to clipboard operation
doodba copied to clipboard

Odoo 16: links in addons path won't work

Open joao-p-marques opened this issue 3 years ago • 2 comments

Discussed in https://github.com/Tecnativa/doodba/discussions/467

Originally posted by yelizariev January 3, 2022 Links to the modules won't work because of recent changes. See https://github.com/odoo/odoo/pull/82081

joao-p-marques avatar Jan 03 '22 10:01 joao-p-marques

Maybe we can simplify a bit to solve this issue:

  • For development, instead of reading the addons from odoo/auto, we could read from odoo/custom/src (making the necessary adjustments to the addons_path configuration). We would loose the possibility of limiting certain addons with addons.yaml, but that is not that important for development.
  • For production/staging environments, instead of symlinking, we can just copy the desired addons to the destination when building the image. It could even be a good opportunity to shift the approach a bit and rely on pip for that, as it would allow a better version management of the addons, and it is the method currently applied in OCA.

joao-p-marques avatar Jan 04 '22 16:01 joao-p-marques

I would avoid always the pip mangling and its version managemente + addons path mangling.

pedrobaeza avatar Jan 04 '22 16:01 pedrobaeza