1 <?xml version="1.0" encoding="UTF-8"?>
5 <!-- Email template for reset password -->
6 <record id="reset_password_email" model="email.template">
7 <field name="name">Reset Password</field>
8 <field name="model_id" ref="base.model_res_users"/>
9 <field name="email_from"><![CDATA[${object.company_id.name} <${object.company_id.email}>]]></field>
10 <field name="email_to" eval="False"><!--(set by reset_password module)--></field>
11 <field name="subject">Password reset</field>
12 <field name="body_html"><![CDATA[
13 <p>A password reset was requested the OpenERP account linked to this email on ${object._auth_reset_password_host()}</p>
15 <p>You may change your password following this <a href="${object._auth_reset_password_link()}">link</a>,
16 or by copy-pasting the following URL in your browser: ${object._auth_reset_password_link()}</p>
18 <p>Note: If you did not ask for a password reset, you can safely ignore this email.</p>]]></field>
21 <!-- TODO get own css -->
22 <record id="reset_password_wizard_form_view" model="ir.ui.view">
23 <field name="name">auth.reset_password.form</field>
24 <field name="model">auth.reset_password</field>
25 <field name="arch" type="xml">
26 <form string="Reset Password" version="7.0">
27 <field name="state" invisible="1"/>
28 <field name="token" on_change="onchange_token(token)" invisible="1"/>
29 <group colspan="4" states="draft,missmatch">
30 <field name="password" required='1' on_change="onchange_pw(password,password_confirmation)"/>
31 <field name="password_confirmation" required='1' on_change="onchange_pw(password,password_confirmation)"/>
32 <group colspan="4" states="missmatch">
33 <div>Passwords missmatch</div>
35 <group colspan="2" col="1">
36 <button string="Change Password" name="change" icon="gtk-dialog-authentication" attrs="{'readonly': [('state', '=', 'missmatch')]}"/>
39 <group colspan="4" states="error" col="1">
40 <div>Invalid or expired token</div>
41 <button special="cancel" string="Close"/>
43 <group colspan="4" states="done" col="1">
44 <div>Password changed. We sent you an email confirming the password change.</div>
45 <button special="cancel" string="Close"/>
51 <record id="action_reset" model="ir.actions.act_window">
52 <field name="name">Reset Password</field>
53 <field name="type">ir.actions.act_window</field>
54 <field name="res_model">auth.reset_password</field>
55 <field name="view_type">form</field>
56 <field name="view_mode">form</field>
57 <field name="target">new</field>