odoo/odoo#136282

Created by Upgrade, Christophe Simonis (chs)
label
odoo-dev:13.0-fix-upgradeimporthook-regex-chs
head
d37aad5b97f20b28ddf0d0d526118dd83dfab4f8
target
13.0
merged
8 months ago by Upgrade, Christophe Simonis (chs)
forward-ports

[FIX] core: harden the legacy `migrations` package matching regex

Since odoo/odoo#122569, we now try to import the `migrations` sub-package of each module to find upgrade tests.
However, this badly written regex match the OCA module `base_maintenance`, which generate a RecursionError.

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