diff options
Diffstat (limited to 'addons/auth_signup/data')
| -rw-r--r-- | addons/auth_signup/data/auth_signup_data.xml | 44 |
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}" <${(object.company_id.email or user.email)|safe}></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> |
