[FIX] calendar: fix mail template

Some `<t>` tags used an old syntax `t-set="var = something"` which
seems not accepted anymore by the template compiler.
The actual syntax is `t-set="var" t-value="something"`.

closes odoo/odoo#86002

Task-id: 2768714
X-original-commit: 09f328e740ca87fd01ed1d5478da2de27b792aae
Signed-off-by: Arnaud Joset <arj@odoo.com>
This commit is contained in:
Rémy Baranx (bar)
2022-03-08 11:03:51 +00:00
parent eaf0cffdd2
commit 0b9260e55e
+5 -5
View File
@@ -365,11 +365,11 @@
<field name="body_html" type="html">
<div>
<t t-set="colors" t-value="{'needsAction': 'grey', 'accepted': 'green', 'tentative': '#FFFF00', 'declined': 'red'}" />
<t t-set="is_online = 'appointment_type_id' in object and object.appointment_type_id" />
<t t-set="target_responsible = object.partner_id == object.partner_id" />
<t t-set="target_customer = object.partner_id == customer" />
<t t-set="recurrent = object.recurrence_id and not ctx.get('calendar_template_ignore_recurrence'" />
<t t-set="mail_tz = ctx.get('mail_tz')" />
<t t-set="is_online" t-value="'appointment_type_id' in object and object.appointment_type_id" />
<t t-set="target_responsible" t-value="object.partner_id == object.partner_id" />
<t t-set="target_customer" t-value="object.partner_id == customer" />
<t t-set="recurrent" t-value="object.recurrence_id and not ctx.get('calendar_template_ignore_recurrence')" />
<t t-set="mail_tz" t-value="ctx.get('mail_tz')" />
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tr>