diff --git a/addons/website_profile/__manifest__.py b/addons/website_profile/__manifest__.py index 7fb559151c5..1466ee1807c 100644 --- a/addons/website_profile/__manifest__.py +++ b/addons/website_profile/__manifest__.py @@ -12,7 +12,7 @@ 'gamification' ], 'data': [ - 'data/profile_data.xml', + 'data/mail_template_data.xml', 'views/gamification_badge_views.xml', 'views/website_profile.xml', 'security/ir.model.access.csv', diff --git a/addons/website_profile/data/profile_data.xml b/addons/website_profile/data/mail_template_data.xml similarity index 100% rename from addons/website_profile/data/profile_data.xml rename to addons/website_profile/data/mail_template_data.xml diff --git a/addons/website_slides/__manifest__.py b/addons/website_slides/__manifest__.py index d16c423565c..a2f9136cb93 100644 --- a/addons/website_slides/__manifest__.py +++ b/addons/website_slides/__manifest__.py @@ -48,7 +48,8 @@ Featuring 'wizard/slide_channel_invite_views.xml', 'data/gamification_data.xml', 'data/mail_data.xml', - 'data/mail_activity_data.xml', + 'data/mail_template_data.xml', + 'data/mail_templates.xml', 'data/slide_data.xml', 'data/website_data.xml', ], diff --git a/addons/website_slides/data/mail_activity_data.xml b/addons/website_slides/data/mail_activity_data.xml deleted file mode 100644 index df1563f489e..00000000000 --- a/addons/website_slides/data/mail_activity_data.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Access Request - fa-check-circle - 50 - - - - diff --git a/addons/website_slides/data/mail_data.xml b/addons/website_slides/data/mail_data.xml index 93b3a996cf6..297f588b094 100644 --- a/addons/website_slides/data/mail_data.xml +++ b/addons/website_slides/data/mail_data.xml @@ -1,196 +1,17 @@ - - - - Slide Published - - New ${object.slide_type} published on ${object.channel_id.name} - -
-

- Hello

- There is something new in the course ${object.channel_id.name} you are following:

-

${object.name}
- % if object.image_1024 -
- - ${object.name} - -
- % endif - - Enjoy this exclusive content! - % if user.signature -
- ${user.signature | safe} - % endif -

-
-
- -
+ + + + Presentation Published + slide.channel + + Presentation Published + - - Slide Shared - - ${user.name} shared a ${object.slide_type} with you! - ${user.email_formatted | safe} - ${ctx.get('email', '')} - -
-

- Hello

- ${user.name} shared the ${object.slide_type} ${object.name} with you! -

- - ${object.name} - -
- - % if user.signature -
- ${user.signature | safe} - % endif -

-
-
- -
- - - - Completed Course - - Congratulation! You completed ${object.channel_id.name} - ${(object.channel_id.user_id.email_formatted or object.channel_id.user_id.company_id.catchall_formatted) | safe} - ${object.partner_id.id} - -
-
-

Hello ${object.partner_id.name},


-

Congratulations!

-

You've completed the course ${object.channel_id.name}

-

Check out the other available courses.


- - - Enjoy this exclusive content! - % if object.channel_id.user_id.signature -
- ${object.channel_id.user_id.signature | safe} - % endif -
-
-
- - ${object.partner_id.lang} -
- - - - Presentation Published - slide.channel - - Presentation Published - - - - - Channel: Invite by email - - You have been invited to join ${object.channel_id.name} - - -
-

- Hello

- You have been invited to join a new course: ${object.channel_id.name}. -

-
-
- ${object.partner_id.lang} - -
- - - - - -
-
+ + Access Request + fa-check-circle + 50 + + +
diff --git a/addons/website_slides/data/mail_template_data.xml b/addons/website_slides/data/mail_template_data.xml new file mode 100644 index 00000000000..08457d7d2c3 --- /dev/null +++ b/addons/website_slides/data/mail_template_data.xml @@ -0,0 +1,116 @@ + + + + + Slide Published + + New ${object.slide_type} published on ${object.channel_id.name} + +
+

+ Hello

+ There is something new in the course ${object.channel_id.name} you are following:

+

${object.name}
+ % if object.image_1024 +
+ + ${object.name} + +
+ % endif + + Enjoy this exclusive content! + % if user.signature +
+ ${user.signature | safe} + % endif +

+
+
+ +
+ + + Slide Shared + + ${user.name} shared a ${object.slide_type} with you! + ${user.email_formatted | safe} + ${ctx.get('email', '')} + +
+

+ Hello

+ ${user.name} shared the ${object.slide_type} ${object.name} with you! +

+ + ${object.name} + +
+ + % if user.signature +
+ ${user.signature | safe} + % endif +

+
+
+ +
+ + + + Completed Course + + Congratulation! You completed ${object.channel_id.name} + ${(object.channel_id.user_id.email_formatted or object.channel_id.user_id.company_id.catchall_formatted) | safe} + ${object.partner_id.id} + +
+
+

Hello ${object.partner_id.name},


+

Congratulations!

+

You've completed the course ${object.channel_id.name}

+

Check out the other available courses.


+ + + Enjoy this exclusive content! + % if object.channel_id.user_id.signature +
+ ${object.channel_id.user_id.signature | safe} + % endif +
+
+
+ + ${object.partner_id.lang} +
+ + + + Channel: Invite by email + + You have been invited to join ${object.channel_id.name} + + +
+

+ Hello

+ You have been invited to join a new course: ${object.channel_id.name}. +

+
+
+ ${object.partner_id.lang} + +
+
+
diff --git a/addons/website_slides/data/mail_templates.xml b/addons/website_slides/data/mail_templates.xml new file mode 100644 index 00000000000..f4f7bc3e218 --- /dev/null +++ b/addons/website_slides/data/mail_templates.xml @@ -0,0 +1,73 @@ + + + + + +