From 33a40f131a3773077c49f7d5dd62ba1fae971ac0 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 30 May 2013 16:29:02 +0200 Subject: [PATCH] [IMP] parse description html to change image src to [module]/static/description/image_url bzr revid: chm@openerp.com-20130530142902-bv4ol10s4n119c8i --- openerp/addons/base/module/module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openerp/addons/base/module/module.py b/openerp/addons/base/module/module.py index b84a35d7e4d..6fffac97da7 100644 --- a/openerp/addons/base/module/module.py +++ b/openerp/addons/base/module/module.py @@ -159,7 +159,7 @@ class module(osv.osv): try: doc = desc_file.read() html = lxml.html.document_fromstring(doc) - for element in html.iterlinks(): + for element, attribute, link, pos in html.iterlinks(): if element.get('src'): element.set('src', "%s/static/description/%s" % (module.name, element.get('src'))) res[module.id] = lxml.html.tostring(html) @@ -486,7 +486,6 @@ class module(osv.osv): function(cr, uid, ids, context=context) cr.commit() - openerp.modules.registry.RegistryManager.signal_registry_change(cr.dbname) registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) config = registry['res.config'].next(cr, uid, [], context=context) or {}