From 3ca9661ab46b796717ffb36920dbccef0aea0f3c Mon Sep 17 00:00:00 2001 From: len-odoo Date: Wed, 28 Feb 2018 09:23:36 +0100 Subject: [PATCH] [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 --- addons/event/data/email_template_data.xml | 22 +++++++++---------- addons/event/i18n/event.pot | 26 +++++++++++------------ 2 files changed, 22 insertions(+), 26 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 @@ -84,18 +84,6 @@ - - - - -
-

- Don't forget to add it to your calendar: -

- Google - Outlook - Yahoo -
@@ -165,6 +153,16 @@
% endif + + + + +
+ Add this event to your calendar + Google + Outlook + Yahoo +
diff --git a/addons/event/i18n/event.pot b/addons/event/i18n/event.pot index 4dbc55ebdc3..683372b140d 100644 --- a/addons/event/i18n/event.pot +++ b/addons/event/i18n/event.pot @@ -75,18 +75,6 @@ msgid "\n" " \n" " \n" " \n" -" \n" -" \n" -"
\n" -"

\n" -" Don't forget to add it to your calendar:\n" -"

\n" -" Google\n" -" Outlook\n" -" Yahoo\n" -"
\n" -" \n" -" \n" " \n" @@ -154,6 +142,16 @@ msgid "\n" " \n" "
\n" " \n" "
\n" " % endif\n" +" \n" +" \n" +" \n" +" \n" +"
\n" +" Add this event to your calendar\n" +" Google\n" +" Outlook\n" +" Yahoo\n" +"
\n" " \n" " \n" " \n" @@ -725,7 +723,7 @@ msgid "Company" msgstr "" #. module: event -#: code:addons/event/models/event.py:475 +#: code:addons/event/models/event.py:481 #, python-format msgid "Compose Email" msgstr "" @@ -1422,7 +1420,7 @@ msgid "No more available seats." msgstr "" #. module: event -#: code:addons/event/models/event.py:357 +#: code:addons/event/models/event.py:363 #, python-format msgid "No more seats available for this event." msgstr ""