Odoo Help

0

Email Template Anchor tag not working.

By
PARVATHY VIJAYAN P
on 7/29/15, 5:14 AM 1,217 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

0
PARVATHY VIJAYAN P
On 8/17/15, 7:47 AM

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

0
Rucha Dave (rda)
On 7/29/15, 7:46 AM

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,

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 7/29/15, 5:14 AM
Seen: 1217 times
Last updated: 8/17/15, 7:47 AM