Odoo Help

Welcome!

This community 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.

0

Email Template Anchor tag not working.

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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