diff options
| author | angelfentanez <joseangel@vauxoo.com> | 2016-10-31 16:58:18 -0600 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-11-22 14:51:05 +0100 |
| commit | e965ac14dd36515739a4729177e92ef2920e0b0f (patch) | |
| tree | e3cc74bfb8856c77daf5c5dc78bc202ff70085dc /odoo/modules/module.py | |
| parent | b1483b530a5fa243da4c6b21e64b8f944b95823f (diff) | |
[FIX] modules: add missing parameter to find_module
AddonsImportHook's find_module method to follow PEP302 by setting None as
default for the path parameter
Similar to edeb5a8c
Fixes #14087
Closes #14088
Diffstat (limited to 'odoo/modules/module.py')
| -rw-r--r-- | odoo/modules/module.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/modules/module.py b/odoo/modules/module.py index ed4318d9641..014f2d0ed9b 100644 --- a/odoo/modules/module.py +++ b/odoo/modules/module.py @@ -39,7 +39,7 @@ loaded = [] class AddonsHook(object): """ Makes modules accessible through openerp.addons.* and odoo.addons.* """ - def find_module(self, name, path): + def find_module(self, name, path=None): if name.startswith(('odoo.addons.', 'openerp.addons.'))\ and name.count('.') == 2: return self |
