67 lines
3.1 KiB
XML
67 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<!-- Email template for reset password -->
|
|
<record id="reset_password_email" model="email.template">
|
|
<field name="name">Reset Password</field>
|
|
<field name="model_id" ref="base.model_res_users"/>
|
|
<field name="email_from"><![CDATA[${object.company_id.name} <${object.company_id.email}>]]></field>
|
|
<field name="email_to" eval="False"><!--(set by reset_password module)--></field>
|
|
<field name="subject">Password reset</field>
|
|
<field name="body_text"><![CDATA[
|
|
A password reset was requested the OpenERP account linked to this email on ${object._auth_reset_password_host()}
|
|
|
|
You may change your password following this link:
|
|
|
|
${object._auth_reset_password_link()}
|
|
|
|
If you don't have asked for password reset, you can safely ignore this email.
|
|
|
|
]]></field>
|
|
</record>
|
|
|
|
<!-- TODO get own css -->
|
|
<record id="reset_password_wizard_form_view" model="ir.ui.view">
|
|
<field name="name">auth.reset_password.form</field>
|
|
<field name="model">auth.reset_password</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Reset Password" version="7.0">
|
|
<field name="state" invisible="1"/>
|
|
<field name="token" on_change="onchange_token(token)" invisible="1"/>
|
|
<group colspan="4" states="draft,missmatch">
|
|
<field name="password" required='1' on_change="onchange_pw(password,password_confirmation)"/>
|
|
<field name="password_confirmation" required='1' on_change="onchange_pw(password,password_confirmation)"/>
|
|
<group colspan="4" states="missmatch">
|
|
<div>Passwords missmatch</div>
|
|
</group>
|
|
<group colspan="2" col="1">
|
|
<button string="Change Password" name="change" icon="gtk-dialog-authentication" attrs="{'readonly': [('state', '=', 'missmatch')]}"/>
|
|
</group>
|
|
</group>
|
|
<group colspan="4" states="error" col="1">
|
|
<div>Invalid or expired token</div>
|
|
<button special="cancel" string="Close"/>
|
|
</group>
|
|
<group colspan="4" states="done" col="1">
|
|
<div>Password changed. We sent you an email confirming the password change.</div>
|
|
<button special="cancel" string="Close"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_reset" model="ir.actions.act_window">
|
|
<field name="name">Reset Password</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">auth.reset_password</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
|
|
</data>
|
|
</openerp>
|