<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>

        <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">
                <!-- add state field in header -->
                <xpath expr="//sheet" position="before">
                    <header>
                        <field name="state" widget="statusbar"/>
                    </header>
                </xpath>
                <!-- add 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"
                            help="Send an email to the user to (re)set their password."/>
                    </div>
                </xpath>
                <!-- hide field set_password -->
                <field name="new_password" position="replace">
                    <field name="new_password" groups="base.group_no_one"/>
                </field>
            </field>
        </record>

    </data>
</openerp>

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>

        <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">
                <!-- add state field in header -->
                <xpath expr="//sheet" position="before">
                    <header>
                        <field name="state" widget="statusbar"/>
                    </header>
                </xpath>
                <!-- add 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"
                            help="Send an email to the user to (re)set their password."/>
                    </div>
                </xpath>
                <!-- hide field set_password -->
                <field name="new_password" position="replace">
                    <field name="new_password" groups="base.group_no_one" password="True"/>
                </field>
            </field>
        </record>

    </data>
</openerp>

Set password should be encrypted on user form
[FIX]: Set password should be encrypted on user form

bzr revid: aja@tinyerp.com-20121206063400-2h8vm6sknjw9k6pa