Skip to Content
Menu
This question has been flagged
2 Replies
5072 Views

While adding anchor tag for email template, its not working . The tag code is showing as it is. What to do

We wrote like :-

% if object.validator:

  Your contact: <a href="mailto:${object.validator.email}?subject=Order ${object.name}">${object.validator.name}</a>

% endif

but its coming like in the image

Avatar
Discard
Author Best Answer

I got it.
I missed some lines in mail.py server/openerp/tools/mail.py

Just see this link :

https://github.com/odoo/odoo/blob/7.0/openerp/tools/mail.py

Avatar
Discard
Best Answer

Try to write line of link like this,

<a href="mailto:${object.validator.email or ''}?subject=Order ${object.name}">${object.validator.name}</a>

here, you can write "%twenty(in number)" or "&#32;" between "=Order" and "${object.name}" for space.

or,

I think, you missed to remove some unnecessary space or text. sometime, because of this type of unnecessary stuff, code is visible.

Regards,

Avatar
Discard