acsone / click-odoo-contrib

Useful Odoo scripts and utility functions, based on click-odoo
GNU Lesser General Public License v3.0
104 stars 58 forks source link

click-odoo-initdb: Don't install some auto_install modules #123

Open voronind opened 1 year ago

voronind commented 1 year ago

Hello. I want to realize https://github.com/OCA/server-tools/tree/12.0/module_change_auto_install support to disable some auto_install modules.

  1. Script will use odoo config file to determinate modules to skip.
  2. Script will read manifest file by odoo function, no direct reading.
  3. Script will use additional info in cache hash function.

If you aren't against this changes I will start working on PR

sbidoul commented 1 year ago

I'm not sure we want to do this. module_change_auto_install is a hack, to be honest, and supporting that will add a lot of complexity in initdb. Plus you likely need to add it to click-odoo-upgrade too for consistency. And it will be very hard to test.

I my practice, when there are auto_install modules I don't want, I either