diff --git a/odoo/modules/module.py b/odoo/modules/module.py index 6ce7affeb86..67297f0c154 100644 --- a/odoo/modules/module.py +++ b/odoo/modules/module.py @@ -68,7 +68,7 @@ class UpgradeHook(object): """Makes the legacy `migrations` package being `odoo.upgrade`""" def find_module(self, name, path=None): - if re.match(r"^odoo.addons.base.maintenance.migrations\b", name): + if re.match(r"^odoo\.addons\.base\.maintenance\.migrations\b", name): # We can't trigger a DeprecationWarning in this case. # In order to be cross-versions, the multi-versions upgrade scripts (0.0.0 scripts), # the tests, and the common files (utility functions) still needs to import from the