[IMP] account_followup: use the new signal_xxx methods instead of trg_validate.
[odoo/odoo.git] / addons / auth_signup / res_users_view.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <openerp>
3     <data>
4
5         <!-- add context in action to enable automatic reset password -->
6         <record id="base.action_res_users" model="ir.actions.act_window">
7             <field name="context">{'reset_password': True}</field>
8         </record>
9
10         <record id="res_users_form_view" model="ir.ui.view">
11             <field name="name">user.form.state</field>
12             <field name="model">res.users</field>
13             <field name="inherit_id" ref="base.view_users_form"/>
14             <field name="arch" type="xml">
15                 <!-- add state field in header -->
16                 <xpath expr="//sheet" position="before">
17                     <header>
18                         <field name="state" widget="statusbar"/>
19                     </header>
20                 </xpath>
21                 <!-- add Reset Password button -->
22                 <xpath expr="//div[@class='oe_right oe_button_box']" position="replace">
23                     <div class="oe_right oe_button_box">
24                         <button string="Reset Password" type="object" name="action_reset_password"
25                             help="Send an email to the user to (re)set their password."/>
26                     </div>
27                 </xpath>
28             </field>
29         </record>
30
31     </data>
32 </openerp>