2012-10-02 14:57:57 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
2012-12-06 09:36:03 +00:00
|
|
|
<!-- add context in action to enable automatic reset password -->
|
|
|
|
<record id="base.action_res_users" model="ir.actions.act_window">
|
|
|
|
<field name="context">{'reset_password': True}</field>
|
|
|
|
</record>
|
|
|
|
|
2012-10-02 14:57:57 +00:00
|
|
|
<record id="res_users_form_view" model="ir.ui.view">
|
|
|
|
<field name="name">user.form.state</field>
|
|
|
|
<field name="model">res.users</field>
|
|
|
|
<field name="inherit_id" ref="base.view_users_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-12-03 14:44:24 +00:00
|
|
|
<!-- add state field in header -->
|
2012-10-02 14:57:57 +00:00
|
|
|
<xpath expr="//sheet" position="before">
|
|
|
|
<header>
|
|
|
|
<field name="state" widget="statusbar"/>
|
|
|
|
</header>
|
|
|
|
</xpath>
|
2012-12-03 14:44:24 +00:00
|
|
|
<!-- add Reset Password button -->
|
2013-01-30 11:14:03 +00:00
|
|
|
<xpath expr="//div[@class='oe_right oe_button_box']//button" position="replace">
|
2013-03-12 12:47:23 +00:00
|
|
|
<button string="Send Reset Password Instructions"
|
2013-02-15 11:51:08 +00:00
|
|
|
type="object" name="action_reset_password" />
|
2012-12-03 14:44:24 +00:00
|
|
|
</xpath>
|
2012-10-02 14:57:57 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|