From e4672db97da1df7c297aafbea93b9ffa26da5e4e Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Thu, 28 Sep 2017 14:07:09 +0200 Subject: [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. --- odoo/modules/loading.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odoo/modules/loading.py') 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) -- cgit v1.2.3