[FIX] calendar: fix recipient of "event update" template

This template runs on calendar event records. It can therefore not really
use 'email' as field to compute a To. Let us void this field as it is used
mainly for a backend action that sets recipients.

Task-2657930 (Email templates fixup)

closes odoo/odoo#79895

X-original-commit: 5b3ad80f427fc2ac0e91622a94f0f63b3d2bf721
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Thibault Delavallée
2021-11-17 08:26:25 +00:00
parent 2e5c7fda07
commit 0afbba8b5b
+1 -1
View File
@@ -360,7 +360,7 @@
<field name="model_id" ref="calendar.model_calendar_event"/>
<field name="subject">{{object.name}}: Event update</field>
<field name="email_from">{{ (object.user_id.email_formatted or user.email_formatted or '') }}</field>
<field name="email_to">{{('' if object.partner_id.email and object.partner_id.email == object.email else object.email) }}</field>
<field name="email_to"></field>
<field name="lang">{{ object.partner_id.lang }}</field>
<field name="body_html" type="html">
<div>