[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.
This commit is contained in:
Olivier Dony
2017-09-28 14:15:30 +02:00
parent dc49ba1dc1
commit e4672db97d
4 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -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)