projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36d3979
)
[FIX] email_template: a tag link rendering, do not process if no href
author
Denis Ledoux
<dle@odoo.com>
Tue, 9 Sep 2014 17:17:23 +0000
(19:17 +0200)
committer
Denis Ledoux
<dle@odoo.com>
Tue, 9 Sep 2014 17:17:23 +0000
(19:17 +0200)
addons/email_template/email_template.py
patch
|
blob
|
history
diff --git
a/addons/email_template/email_template.py
b/addons/email_template/email_template.py
index
4c569fe
..
d8b0f61
100644
(file)
--- a/
addons/email_template/email_template.py
+++ b/
addons/email_template/email_template.py
@@
-145,7
+145,7
@@
class email_template(osv.osv):
# - img src -> check URL
# - a href -> check URL
for node in root.iter():
- if node.tag == 'a':
+ if node.tag == 'a' and node.get('href'):
node.set('href', _process_link(node.get('href')))
elif node.tag == 'img' and not node.get('src', 'data').startswith('data'):
node.set('src', _process_link(node.get('src')))