Odoo Help

1

Why do email templates sentences work only in the preview?

By
Juan Formoso
on 12/2/14, 8:02 AM 649 views

I'm trying to send an email with some conditions to several partners (mass_mail: True). My email template is the next one:

% if object.is_friend:
    Hello my friend.
% else:
    Hello.
% endif

When I click on the preview of the template, I see the result perfectly. In fact, if I send the mail from the form of a partner, he receives the email with the right content.

The problem is when I try to send the mail from the tree view of partners (where mass_mail is True), because the selected partners receive an empty mail.

I updated the branches of addons and server (OpenERP7). But no result in this point. Can anyone help me, please?

0
Luis Alberto Panozzo
On 11/16/15, 11:05 AM

Juan, most likely you have two languages in the system.

If, when editing the html, you click on the translation button, it will take you to the translation panes.

Copy the whole html in your screen and paste it on the left pane of the translation screen. 

This should solve your issue.

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

2 follower(s)

Stats

Asked: 12/2/14, 8:02 AM
Seen: 649 times
Last updated: 11/23/15, 9:03 AM