diff options
| author | Aurélien Warnon <awa@odoo.com> | 2019-02-11 13:18:44 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-02-11 17:47:22 +0000 |
| commit | e5536fc07b24292cffb61c7b84fff0de8d92409a (patch) | |
| tree | 298fa2ae2878caa833d78957c4b59c38747d1f53 /addons/website_slides/data/mail_data.xml | |
| parent | 779d9c9b90d05c96a301af60034a58ddda05f381 (diff) | |
[IMP] website_slides: add invite wizard for 'invite' slide_channel
Purpose
=======
Currently, the slide_channels having a visibility configured as 'invite' could
only add members manually.
This commit adds an 'Invite' button on top of the slide channel form that opens
a wizard allowing to send emails to contacts and also make them members of the
related slide channel.
Diffstat (limited to 'addons/website_slides/data/mail_data.xml')
| -rw-r--r-- | addons/website_slides/data/mail_data.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/addons/website_slides/data/mail_data.xml b/addons/website_slides/data/mail_data.xml index db042d4f313..3b397545940 100644 --- a/addons/website_slides/data/mail_data.xml +++ b/addons/website_slides/data/mail_data.xml @@ -60,5 +60,29 @@ <field name="default" eval="True"/> <field name="description">Presentation Published</field> </record> + + <!-- Slide channel invite feature --> + <record id="mail_template_slide_channel_invite" model="mail.template"> + <field name="name">Channel: Invite by email</field> + <field name="model_id" ref="model_slide_channel_partner" /> + <field name="subject">You have been invited to join ${object.channel_id.name}</field> + <field name="body_html" type="html"> +<div style="margin: 0px; padding: 0px; font-size: 13px;"> + <p style="margin: 0px; padding: 0px; font-size: 13px;"> + Dear ${object.partner_id.name or 'participant'}<br/><br/> + You have been invited to join a new course: ${object.channel_id.name}. + <div style="margin: 16px 0px 16px 0px;"> + <a href="${(object.channel_id.website_url) | safe}" + style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;"> + Click here to start the course. + </a> + </div> + Enjoy this exclusive content ! + </p> +</div> + </field> + <field name="auto_delete" eval="True"/> + <field name="user_signature" eval="False"/> + </record> </data> </odoo> |
