-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Summary
While installing the industry module
3pl_logistic_company
the file data/res_config_settings.xml
creates a res.config.settings record that enables module_delivery and module_delivery_sendcloud, then calls res.config.settings.execute. During the initial data loading (--stop-after-init), this call attempts to install the modules via button_immediate_install, which is forbidden before the registry is fully loaded. Odoo raises:
odoo.exceptions.UserError: The method _button_immediate_install cannot be called on init or non loaded registries. Please use button_install instead.
while parsing .../industry/3pl_logistic_company/data/res_config_settings.xml:19
Steps to reproduce
19.0 standard stack (Enterprise + Industry) on macOS, empty database.
Run ./odoo/odoo-bin --stop-after-init -i 3pl_logistic_company -d test3pl5 -c conf/odoo.conf.
Loading reaches
data/res_config_settings.xml
and crashes with the error above.
Actual result
Installation aborts; the registry can’t load and the database remains unusable.
Expected result
3pl_logistic_company
should install without manual intervention, enabling all required groups/options and installing its module dependencies only after the registry is ready.
Workaround
Remove the lines
field name="module_delivery" eval="True"
field name="module_delivery_sendcloud" eval="True"
from the data file
Manually install the dependencies first doest not help
But installing all 3 from command line work
./odoo/odoo-bin --stop-after-init -i module_delivery,module_delivery_sendcloud,3pl_logistic_company -d test3pl5 -c conf/odoo.conf.
Relevant logs
2025-11-18 16:00:29,543 INFO odoo.addons.base.models.ir_module: User #1 triggered module installation
...
odoo.exceptions.UserError: The method _button_immediate_install cannot be called on init or non loaded registries. Please use button_install instead.
while parsing /industry/3pl_logistic_company/data/res_config_settings.xml:19
Please adjust res_config_settings loading (for example, drop the execute call or install dependencies via a post-init hook) so the module installs cleanly.