[IMP] css app description relative href
bzr revid: chm@openerp.com-20130531093901-41uqp52xeef8yu37
This commit is contained in:
parent
f14a86b7ae
commit
71d93466e7
|
@ -162,7 +162,7 @@ class module(osv.osv):
|
|||
html = lxml.html.document_fromstring(doc)
|
||||
for element, attribute, link, pos in html.iterlinks():
|
||||
if element.get('src') and not '//' in element.get('src') and not 'static/' in element.get('src'):
|
||||
element.set('src', "%s/static/description/%s" % (module.name, element.get('src')))
|
||||
element.set('src', "/%s/static/description/%s" % (module.name, element.get('src')))
|
||||
res[module.id] = lxml.html.tostring(html)
|
||||
finally:
|
||||
desc_file.close()
|
||||
|
|
Loading…
Reference in New Issue