summaryrefslogtreecommitdiff
path: root/addons/event/data
diff options
context:
space:
mode:
authorlen-odoo <len@odoo.com>2018-02-28 09:23:36 +0100
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-03-01 10:18:50 +0100
commit3ca9661ab46b796717ffb36920dbccef0aea0f3c (patch)
tree158c82d0b58cf1dc5007025527998bcab50747ca /addons/event/data
parentbb6039369c1b2d0e02d7c1db46c9b5213643ae74 (diff)
[FIX] event: move calendar block in the template
The `location` variable was used before it was set in the event reminder in the email template. Introduced at f8c6c76 When rendered, the links to add the event to a Google/Yahoo/Outlook calendar were not set the event to the correct location opw-1818699
Diffstat (limited to 'addons/event/data')
-rw-r--r--addons/event/data/email_template_data.xml22
1 files changed, 10 insertions, 12 deletions
diff --git a/addons/event/data/email_template_data.xml b/addons/event/data/email_template_data.xml
index f2a742d9318..b7788cba9a3 100644
--- a/addons/event/data/email_template_data.xml
+++ b/addons/event/data/email_template_data.xml
@@ -86,18 +86,6 @@
<td style="padding:15px 20px 0px 20px;">
<table style="width:100%;border-top:1px solid #e1e1e1;">
<tr>
- <td style="padding:25px 0px; text-align:center;">
- <p>
- Don't forget to <strong>add it to your calendar</strong>:
- </p>
- <a href="https://www.google.com/calendar/render?action=TEMPLATE&text=${object.event_id.name}&dates=${date_begin}/${date_end}&location=${location}" style="padding:3px 5px;border:1px solid #875A7B;color:#875A7B;text-decoration:none;border-radius:3px;" target="new"><img src="/web_editor/font_to_img/61525/rgb(135,90,123)/16" style="vertical-align:middle;" height="16"> Google</a>
- <a href="https://bay02.calendar.live.com/calendar/calendar.aspx?rru=addevent&summary=${object.event_id.name}&dtstart=${date_begin}&dtend=${date_end}&location=${location}" style="padding:3px 5px;border:1px solid #875A7B;color:#875A7B;text-decoration:none;border-radius:3px;" target="new"><img src="/web_editor/font_to_img/61525/rgb(135,90,123)/16" style="vertical-align:middle;" height="16"> Outlook</a>
- <a href="https://calendar.yahoo.com/?v=60&view=d&type=20&title=${object.event_id.name}&in_loc=${location}&st=${format_tz(object.event_id.date_begin, tz='UTC', format='%Y%m%dT%H%M%S')}&et=${format_tz(object.event_id.date_end, tz='UTC', format='%Y%m%dT%H%M%S')}" style="padding:3px 5px;border:1px solid #875A7B;color:#875A7B;text-decoration:none;border-radius:3px;" target="new"><img src="/web_editor/font_to_img/61525/rgb(135,90,123)/16" style="vertical-align:middle;" height="16"> Yahoo</a>
- </td>
- </tr>
- </table>
- <table style="width:100%;border-top:1px solid #e1e1e1;">
- <tr>
<td style="padding:25px 0px;vertical-align:top;">
<img src="/web_editor/font_to_img/61555/rgb(81,81,102)/34" style="padding:4px;max-width:inherit;" height="34">
</td>
@@ -165,6 +153,16 @@
</tr>
</table>
% endif
+ <table style="width:100%;border-top:1px solid #e1e1e1;">
+ <tr>
+ <td style="padding:25px 0px;">
+ <strong>Add this event to your calendar</strong>
+ <a href="https://www.google.com/calendar/render?action=TEMPLATE&text=${object.event_id.name}&dates=${date_begin}/${date_end}&location=${location}" style="padding:3px 5px;border:1px solid #875A7B;color:#875A7B;text-decoration:none;border-radius:3px;" target="new"><img src="/web_editor/font_to_img/61525/rgb(135,90,123)/16" style="vertical-align:middle;" height="16"> Google</a>
+ <a href="https://bay02.calendar.live.com/calendar/calendar.aspx?rru=addevent&summary=${object.event_id.name}&dtstart=${date_begin}&dtend=${date_end}&location=${location}" style="padding:3px 5px;border:1px solid #875A7B;color:#875A7B;text-decoration:none;border-radius:3px;" target="new"><img src="/web_editor/font_to_img/61525/rgb(135,90,123)/16" style="vertical-align:middle;" height="16"> Outlook</a>
+ <a href="https://calendar.yahoo.com/?v=60&view=d&type=20&title=${object.event_id.name}&in_loc=${location}&st=${format_tz(object.event_id.date_begin, tz='UTC', format='%Y%m%dT%H%M%S')}&et=${format_tz(object.event_id.date_end, tz='UTC', format='%Y%m%dT%H%M%S')}" style="padding:3px 5px;border:1px solid #875A7B;color:#875A7B;text-decoration:none;border-radius:3px;" target="new"><img src="/web_editor/font_to_img/61525/rgb(135,90,123)/16" style="vertical-align:middle;" height="16"> Yahoo</a>
+ </td>
+ </tr>
+ </table>
</td>
</tr>
</tbody>