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.

1

Why the email templates are OK and when I send the email they aren't OK?

By
Juan Formoso
on 11/20/14, 4:40 AM 718 views

I did a template (Mako) and it has this line:

<a href="http://localhost:30070/invitation-response?var1=${object.encripted_url}&var2=yes">I'll go</a>

When I click on the preview, it looks great, I click on the link and it redirects me where I want to go:

http://localhost:30070/invitation-response?var1=c78d921d980261c80dde30804875b6058de124f7&var2=yes

However, if I load this template to send the email, I receive this link:

http://localhost:30070/invitation-response?var1=${object.encripted_url}&var2=yes

And I have other problems too:

<% set variable = 'Hello friend' %>
<p>${variable}</p>

If I click on preview, I can see Hello friend, but when I send the email, I get a blank line.

Did anyone experience this problem? Any help would be very appreciated. Thank you in advance.

EDIT

I was checking more and more and I'm getting the wrong emails only when the composition_mode is 'mass_mail'. If I send the email to a unique person, the result is OK. Can anyone tell me why, please?

0
chesucr
On 11/21/14, 9:45 AM

You can try updating the branch through bazaar or git to the last version (it depends on what you use) :)

Thank you @devel! I'm using bazaar, and I've just updated the whole ocb-addons branch (bzr pull), but still same result.

Juan Formoso
on 11/21/14, 10:04 AM

You must update the ocb-server branch as well! greetings

chesucr
on 11/21/14, 10:10 AM

Now it works!!!! ¡¡¡¡Mil gracias!!!!

Juan Formoso
on 11/21/14, 10:15 AM
0
Pierre Lamarche
On 11/20/14, 2:36 PM

Just a thought but have you checked the translation of your template in the language (traduction) of the partner for who you are generating this template ?

P.

Hello Pierre, any thought is welcome! Unfortunately, I don't understand what do you mean. Can you explain it more detailed, please?

Juan Formoso
on 11/21/14, 3:32 AM

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: 11/20/14, 4:40 AM
Seen: 718 times
Last updated: 3/16/15, 8:10 AM