server-tools icon indicating copy to clipboard operation
server-tools copied to clipboard

[19.0][MIG] module_change_auto_install: Migration to 19.0

Open rven opened this issue 3 months ago • 11 comments

rven avatar Sep 22 '25 14:09 rven

Hi. It looks like something is broken in the V19 CI.

https://github.com/OCA/server-tools/actions/runs/17918299803/job/50946259471?pr=3384#step:4:169

 could not obtain odoo.addons.__path__ using python
not found in addons path: base
Aborted.

other V19 PR have the same problem. (https://github.com/OCA/server-tools/actions/runs/17910628074/job/50921155714?pr=3382)

waiting for the fix.

legalsylvain avatar Sep 22 '25 14:09 legalsylvain

I'm still testing this change, doesn't seem to work right now

rven avatar Sep 25 '25 10:09 rven

It seems to be important to return False iso set() :-)

rven avatar Sep 25 '25 13:09 rven

When adding the configuration to the odoo's config file, this warning is shown

2025-09-25 14:44:14,513 556 WARNING ? odoo.tools.config: unknown option 'modules_auto_install_disabled' in the config file at /root/.odoorc, option stored as-is, without parsing

Anybody who knows how we could fix this?

rven avatar Sep 26 '25 05:09 rven

It looks like the spirit of Odoo V19, is to have a fixed quantity of option in the [options] section, defined in the core code.

Could you try to replace :

[options]
server_wide_modules = web,module_change_auto_install

modules_auto_install_disabled =
       partner_autocomplete,
       iap,
       mail_bot

modules_auto_install_enabled =
       web_responsive:web,
       base_technical_features,
       disable_odoo_online,
       account_usability

by

[options]

server_wide_modules = web,module_change_auto_install

[module_change_auto_install]
modules_disabled =
       partner_autocomplete,
       iap,
       mail_bot

modules_enabled =
       web_responsive:web,
       base_technical_features,
       disable_odoo_online,
       account_usability

legalsylvain avatar Sep 26 '25 07:09 legalsylvain

It looks like the spirit of Odoo V19, is to have a fixed quantity of option in the [options] section, defined in the core code.

Could you try to replace :

[options]
server_wide_modules = web,module_change_auto_install

modules_auto_install_disabled =
       partner_autocomplete,
       iap,
       mail_bot

modules_auto_install_enabled =
       web_responsive:web,
       base_technical_features,
       disable_odoo_online,
       account_usability

by

[options]

server_wide_modules = web,module_change_auto_install

[module_change_auto_install]
modules_disabled =
       partner_autocomplete,
       iap,
       mail_bot

modules_enabled =
       web_responsive:web,
       base_technical_features,
       disable_odoo_online,
       account_usability

I tried several ways, but the warning pops up too soon. Odoo refatcored it completly to show a warning on non standard options.

rven avatar Sep 29 '25 12:09 rven

I tried several ways, but the warning pops up too soon.

Could you update the logs ?

We can wait and take a look on this similar OCA modules that will have the same problems :

  • https://github.com/OCA/queue/tree/18.0/queue_job#configuration
  • https://github.com/OCA/server-env/tree/18.0/server_environment_ir_config_parameter#configuration

legalsylvain avatar Sep 29 '25 12:09 legalsylvain

What do you mean with

Could you update the logs ?

rven avatar Sep 29 '25 12:09 rven

What do you mean with

Could you update the logs ?

Could you put the new log, when you use [module_change_auto_install] in the odoo.cfg file ?

thanks !

legalsylvain avatar Sep 29 '25 13:09 legalsylvain

@legalsylvain I've managed to use the following config as you mentioned

[options]

server_wide_modules = web,module_change_auto_install

[module_change_auto_install]
modules_disabled =
       partner_autocomplete,
       iap,
       mail_bot

modules_enabled =
       web_responsive:web,
       base_technical_features,
       disable_odoo_online,
       account_usability

Can you have a look?

rven avatar Sep 30 '25 06:09 rven

Changes implemented after this commit of Odoo https://github.com/odoo/odoo/commit/2b4b30cb8b8c67d94b3ee947fdc80fa1005f3559

OCB has not yet the latest version of Odoo.

rven avatar Oct 13 '25 09:10 rven