summaryrefslogtreecommitdiff
path: root/addons/auth_signup/data
diff options
context:
space:
mode:
authorDenis Vermylen <dve@odoo.com>2017-06-09 18:45:24 +0200
committerThibault Delavallée <tde@odoo.com>2017-07-06 12:53:39 +0200
commit054c68689b58f554e9433938644f2960720e08ef (patch)
treecd6196a3b8654beee6232d9f604616e97bbca30a /addons/auth_signup/data
parent7dd6225f0bbee29f4a138633edd0c16298743518 (diff)
[IMP] auth_signup: various usability improvements in signup process
* allow new signup on invalid token * relabel signup buttons * send a welcome email upon signup with a signup token. This way, should the token somehow be usurped by someone else, the original partner's email address will be notified. (before the usurper can change the email)
Diffstat (limited to 'addons/auth_signup/data')
-rw-r--r--addons/auth_signup/data/auth_signup_data.xml44
1 files changed, 44 insertions, 0 deletions
diff --git a/addons/auth_signup/data/auth_signup_data.xml b/addons/auth_signup/data/auth_signup_data.xml
index 2b6ceeeed79..b9f88893d2a 100644
--- a/addons/auth_signup/data/auth_signup_data.xml
+++ b/addons/auth_signup/data/auth_signup_data.xml
@@ -91,5 +91,49 @@
<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>
+ <field name="model_id" ref="base.model_res_users"/>
+ <field name="email_from">"${object.company_id.name|safe}" &lt;${(object.company_id.email or user.email)|safe}&gt;</field>
+ <field name="email_to">${object.email|safe}</field>
+ <field name="subject">Welcome to ${object.company_id.name}!</field>
+ <field name="body_html" type="html">
+<div style="padding:0px;width:600px;margin:auto;background: #FFFFFF repeat top /100%;color:#777777">
+ <table cellspacing="0" cellpadding="0" style="width:600px;border-collapse:collapse;background:inherit;color:inherit">
+ <tbody><tr>
+ <td valign="center" width="200" style="padding:10px 10px 10px 5px;font-size: 12px">
+ <img src="/logo.png" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${user.company_id.name}" />
+ </td>
+ </tr></tbody>
+ </table>
+</div>
+<div style="padding:0px;width:600px;margin:auto;background: #FFFFFF repeat top /100%;color:#777777">
+ <p>Dear ${object.name},</p>
+ <p>
+ Your account has been successfully created!
+ </p>
+ <p>
+ Your login: ${object.email}
+ <br/>
+ Your password: ${ctx['password']}
+ </p>
+ <p>
+ To gain access to your account, you can use the following link:
+ </p>
+ <div style="text-align: center; margin-top: 16px;">
+ <a href="/web/login?${ctx['auth_login']}" style="padding: 5px 10px; font-size: 12px; line-height: 18px; color: #FFFFFF; border-color:#875A7B; text-decoration: none; display: inline-block; margin-bottom: 0px; font-weight: 400; text-align: center; vertical-align: middle; cursor: pointer; white-space: nowrap; background-image: none; background-color: #875A7B; border: 1px solid #875A7B; border-radius:3px">Go to My Account</a>
+ </div>
+ <p>Best regards,</p>
+</div>
+<div style="padding:0px;width:600px;margin:auto; margin-top: 10px; background: #fff repeat top /100%;color:#777777">
+ ${user.signature | safe}
+ <p style="font-size: 11px; margin-top: 10px;">
+ <strong>Sent by ${user.company_id.name} using <a href="www.odoo.com" style="text-decoration:none; color: #875A7B;">Odoo</a></strong>
+ </p>
+</div></field>
+ <field name="user_signature" eval="False"/>
+ </record>
+
</data>
</odoo>