[IMP] auth_reset_password: make password not required in user form (Reset Password button can do the job)
bzr revid: rco@openerp.com-20121128090514-ponlrne0mz8uxy7u
This commit is contained in:
parent
572f0a76d8
commit
3e46253ae4
|
@ -7,11 +7,16 @@
|
|||
<field name="model">res.users</field>
|
||||
<field name="inherit_id" ref="base.view_users_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<!-- Reset Password button -->
|
||||
<xpath expr="//sheet/*[1]" position="before">
|
||||
<div class="oe_right oe_button_box">
|
||||
<button string="Reset Password" type="object" name="action_reset_password"/>
|
||||
</div>
|
||||
</xpath>
|
||||
<!-- password is never required; one can use Reset Password -->
|
||||
<field name="new_password" position="attributes">
|
||||
<attribute name="attrs">{}</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
Loading…
Reference in New Issue