From ae1fb33e0e31cf3b15468cbac6b2befe85e3ae33 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 3 Oct 2016 13:13:11 +0200 Subject: [PATCH] [FIX] base: call correct method to get module icon --- odoo/addons/base/module/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/base/module/module.py b/odoo/addons/base/module/module.py index 99a319b0ad6..89d49a4b74c 100644 --- a/odoo/addons/base/module/module.py +++ b/odoo/addons/base/module/module.py @@ -218,7 +218,7 @@ class Module(models.Model): path_parts = module.icon.split('/') path = modules.get_module_resource(path_parts[1], *path_parts[2:]) else: - path = modules.get_module_icon(module.name) + path = modules.module.get_module_icon(module.name) if path: with tools.file_open(path, 'rb') as image_file: module.icon_image = image_file.read().encode('base64')