odoo/odoo#157657

Created by sbidoul
Merged at 9d2b18f047d1108cb9ab08ef18e6643666773370

Statuses:

label
acsone:17.0-dont-error-on-bad-version-if-not-installable-sbi
head
6d2a055a8571794778fcfa5fc54de7bbb53479d2
merged
2 years ago by Upgrade, Christophe Simonis (chs)
odoo/odoo
17.0 #157657
saas-17.1 #158152
saas-17.2 #158251
18.0
saas-18.2
saas-18.3
saas-18.4
19.0
saas-19.1
saas-19.2
master #158294

[FIX] core: don't fail on bad version for uninstallable addons

When an addon has an invalid version but is not installable, there is no need to error out. This situation typically happens when unmigrated modules are present in the addons path.

Description of the issue/feature this PR addresses:

fixes #141747

Current behavior before PR:

When an uninstallable addon with an invalid version is present in the path, Odoo does not start.

Desired behavior after PR is merged:

When an uninstallable addon with an invalid version is present in the path, Odoo does start.


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr