diff options
| author | Olivier Dony <odo@openerp.com> | 2017-09-28 14:07:09 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2017-09-28 14:15:30 +0200 |
| commit | e4672db97da1df7c297aafbea93b9ffa26da5e4e (patch) | |
| tree | 12d2f52d4090434b71ef17e3d361255e57965a73 /odoo/modules | |
| parent | dc49ba1dc181f477df6a7ce58c867a8467bc27ff (diff) | |
[IMP] module: make internal methods private
Only methods that are meant to be accessed by the client-side
directly (or via RPC) should be public. All others should be private by
default.
Diffstat (limited to 'odoo/modules')
| -rw-r--r-- | odoo/modules/loading.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py index f8c65d40177..5952fa499b9 100644 --- a/odoo/modules/loading.py +++ b/odoo/modules/loading.py @@ -148,7 +148,7 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, skip_modules= module = env['ir.module.module'].browse(module_id) if perform_checks: - module.check() + module._check() if package.state=='to upgrade': # upgrading the module information @@ -164,7 +164,7 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, skip_modules= # Update translations for all installed languages overwrite = odoo.tools.config["overwrite_existing_translations"] - module.with_context(overwrite=overwrite).update_translations() + module.with_context(overwrite=overwrite)._update_translations() registry._init_modules.add(package.name) |
