diff options
| author | Parth Choksi <pch@odoo.com> | 2019-02-21 05:05:40 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-07-10 15:12:02 +0000 |
| commit | d59fd862f1e8dc2663c360194e4e9f1bbf3d7230 (patch) | |
| tree | 9d445b9923a6026c5ea12fb21a168cdfd11eb454 /addons/auth_signup/data/auth_signup_data.xml | |
| parent | 41334ca2a5510c934d94da5b9501c8cf4cd38fb3 (diff) | |
[IMP] auth_signup : send a reminder for pending users
Purpose of this commit is to send a mail template to the user
who invited other user(s) in Odoo.
It informs the user about the details of user(s) who have been
invited by him but have still not registered after the given days
of creation (default set to -> 5days)
task-1912449
Closes #31582
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/auth_signup/data/auth_signup_data.xml')
| -rw-r--r-- | addons/auth_signup/data/auth_signup_data.xml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/addons/auth_signup/data/auth_signup_data.xml b/addons/auth_signup/data/auth_signup_data.xml index 88852ce662b..5fe062a6d44 100644 --- a/addons/auth_signup/data/auth_signup_data.xml +++ b/addons/auth_signup/data/auth_signup_data.xml @@ -197,6 +197,58 @@ <field name="user_signature" eval="False"/> </record> + <!-- Email template for reminder of unregistered users --> + <record id="mail_template_data_unregistered_users" model="mail.template"> + <field name="name">Auth Signup: Unregistered Users</field> + <field name="model_id" ref="base.model_res_users"/> + <field name="subject">Reminder for unregistered users</field> + <field name="email_from">${object.company_id.partner_id.email_formatted|safe}</field> + <field name="email_to">${object.email_formatted|safe}</field> + <field name="body_html" type="html"> +<table border="0" cellpadding="0" cellspacing="0" style="background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center"> +<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;"> +<tbody> + <!-- CONTENT --> + <tr> + <td align="center" style="min-width: 590px;"> + <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> + % set invited_users = ctx['invited_users'] + <td style="text-align : left"> + <span style="font-size: 20px; font-weight: bold;"> + Pending Invitations + </span><br/><br/> + </td> + <tr><td valign="top" style="font-size: 13px;"> + <div> + Dear ${object.name or ''},<br/> <br/> + You added the following user(s) to your database but they haven't registered yet: + <ul> + % for invited_user in invited_users: + <li>${invited_user}</li> + % endfor + </ul> + Follow up with them so they can access your database and start working with you. + <br /><br/> + Have a nice day!<br /> + --<br/>The ${object.company_id.name} Team + </div> + </td></tr> + <tr><td style="text-align:center;"> + <hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/> + </td></tr> + </table> + </td> + </tr> +</tbody> +</table> +</td></tr> +</table> + </field> + <field name="lang">${object.partner_id.lang}</field> + <field name="auto_delete" eval="True"/> + <field name="user_signature" eval="False"/> + </record> + <!-- Email template for new users that used a signup token --> <record id="mail_template_user_signup_account_created" model="mail.template"> <field name="name">Auth Signup: Odoo Account Created</field> |
