summaryrefslogtreecommitdiff
path: root/addons/event/data
diff options
context:
space:
mode:
authorJairo Llopis <yajo.sk8@gmail.com>2019-10-01 12:44:38 +0000
committerfw-bot <otis@odoo.com>2019-10-02 18:06:35 +0000
commit8b899af6257791bb279928c72d2a39f916988762 (patch)
tree7c69d8fe044ffda16c0cf1698876fad08c9edb68 /addons/event/data
parent8977ab7d09f00dd173e061abd544bf96ed0ccb97 (diff)
[FIX] event: Do not send unpublished event link
Before this patch, the event link could be sent in the email even if it was unpublished by hand. Now, if the event is unpublished, no link appears in the registration and reminder email. closes odoo/odoo#37842 Closes: #37700 X-original-commit: 9878f319520861578ccc49796f4335f99ad49f9b Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/event/data')
-rw-r--r--addons/event/data/email_template_data.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/event/data/email_template_data.xml b/addons/event/data/email_template_data.xml
index 46df2ffb194..11827e2e829 100644
--- a/addons/event/data/email_template_data.xml
+++ b/addons/event/data/email_template_data.xml
@@ -65,14 +65,14 @@
<div>
Hello ${object.name or ''},<br/>
We are happy to confirm your registration to the event
- % if 'website_url' in object.event_id and object.event_id.website_url:
+ % if 'website_published' in object.event_id and object.event_id.website_published:
<a href="${object.event_id.website_url}" style="color:#875A7B;text-decoration:none;">${object.event_id.name}</a>
% else:
<strong>${object.event_id.name}</strong>
% endif
for attendee ${object.name}.
</div>
- % if 'website_url' in object.event_id and object.event_id.website_url:
+ % if 'website_published' in object.event_id and object.event_id.website_published:
<div style="margin: 16px 0px 16px 0px;">
<a href="${object.event_id.website_url}"
style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:16px;">View Event</a><br />
@@ -262,14 +262,14 @@
<div>
Hello ${object.name},<br/>
We are excited to remind you that the event
- % if 'website_url' in object.event_id and object.event_id.website_url:
+ % if 'website_published' in object.event_id and object.event_id.website_published:
<a href="${object.event_id.website_url}" style="color:#875A7B;text-decoration:none;">${object.event_id.name}</a>
% else:
<strong>${object.event_id.name}</strong>
% endif
is starting <strong>${object.get_date_range_str()}</strong>.
</div>
- % if 'website_url' in object.event_id and object.event_id.website_url:
+ % if 'website_published' in object.event_id and object.event_id.website_published:
<div style="margin: 16px 0px 16px 0px;">
<a href="${object.event_id.website_url}"
style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:16px;">View Event</a><br />