Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3500 Widoki

Hello,

I'm currently using Odoo 12.0+e-20181025 . I have been trying to make an email template that will work with an automation where it will send email to the assigned helpdesk team member and also the creator of the ticket. The ticket itself is made via API from a PHP webapp.

The problem I'm having is as the following. I've made the ticket via the PHP webapp. It has been submitted properly without any problem. The automation also worked, as it has assigned a member and then sent two separate emails. The thing is, only the one that is sent to the assigned member but not the creator. It seemingly failed to get the email.​

When I choose the preview, the email is as the following:

Agent <test_agent_1@mailinator.com> , Customer Service <test_cs_1@mailinator.com>

But when I sent the email, it shows the following:

Agent <test_agent_1@mailinator.com> , False

My code is as the following:

${object.user_id.email_formatted | safe} , ${object.x_studio_creator_name_2.email_formatted | safe}

 
Thanks for reading and for the help.

Awatar
Odrzuć
Najlepsza odpowiedź

Its due to you are checking preview with another record and record you are sending mail is different with no x_studio_creator_name_2 field set or no email_formatted set.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sie 25
4430
0
gru 16
3930
2
lut 25
3026
0
sty 25
668
1
paź 24
1654