[IMP] sale order line invisible type
[odoo/odoo.git] / addons / auth_reset_password / auth_reset_password.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <openerp>
3     <data>
4
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_text"><![CDATA[
13 A password reset was requested the OpenERP account linked to this email on ${object._auth_reset_password_host()}
14
15 You may change your password following this link:
16
17 ${object._auth_reset_password_link()}
18
19 If you don't have asked for password reset, you can safely ignore this email.
20
21 ]]></field>
22         </record>
23
24         <!-- TODO get own css -->
25         <record id="reset_password_wizard_form_view" model="ir.ui.view">
26             <field name="name">auth.reset_password.form</field>
27             <field name="model">auth.reset_password</field>
28             <field name="type">form</field>
29             <field name="arch" type="xml">
30                 <form string="Reset Password" version="7.0">
31                     <field name="state" invisible="1"/> 
32                     <field name="token" on_change="onchange_token(token)" invisible="1"/>
33                     <group colspan="4" states="draft,missmatch">
34                         <field name="password" required='1' on_change="onchange_pw(password,password_confirmation)"/>
35                         <field name="password_confirmation" required='1' on_change="onchange_pw(password,password_confirmation)"/>
36                         <group colspan="4" states="missmatch">
37                             <div>Passwords missmatch</div>
38                         </group>
39                         <group colspan="2" col="1">
40                             <button string="Change Password" name="change" icon="gtk-dialog-authentication" attrs="{'readonly': [('state', '=', 'missmatch')]}"/>
41                         </group>
42                     </group>
43                     <group colspan="4" states="error" col="1">
44                         <div>Invalid or expired token</div>
45                         <button special="cancel" string="Close"/>
46                     </group>
47                     <group colspan="4" states="done" col="1">
48                         <div>Password changed. We sent you an email confirming the password change.</div>
49                         <button special="cancel" string="Close"/>
50                     </group>
51                 </form>
52             </field>
53         </record>
54
55         <record id="action_reset" model="ir.actions.act_window">
56             <field name="name">Reset Password</field>
57             <field name="type">ir.actions.act_window</field>
58             <field name="res_model">auth.reset_password</field>
59             <field name="view_type">form</field>
60             <field name="view_mode">form</field>
61             <field name="target">new</field>
62         </record>
63
64
65     </data>
66 </openerp>