[IMP] util/modules: force install of new modules
The method force_install_module only works when the module already exists in the database and changes its state immediately. For new modules this does not work unless the module is explicitly added, or we use the auto discovery methods instead.
A check _assert_modules_exists is also added to the force installation.
As a solution, the check for version is added to see if we can delay the force installation to post-base when the module is auto discovered, and the implementation is moved to _force_install_module. The calls for force_install_module are replaced in the following methods where the module is expected to exist:
merge_modulenew_module_deptrigger_auto_install_trigger_auto_discovery
upgradeci retry with always only base
@robodoo r-
On hold until some retro-compatibility questions are sorted out.
Are retro-compatibility questions sorted out? this could have been useful here too https://github.com/odoo/upgrade/pull/8403
Damn! I restarted handling this delay-to-autodiscovery with https://github.com/odoo/upgrade-util/compare/master...odoo-dev:upgrade-util:master-delay_force_install_module-chs
well I also forgot about it ¯\_(ツ)_/¯
closing in favor of https://github.com/odoo/upgrade-util/pull/315
