<?xml version="1.0"?>
<!-- add state field in header -->
                <xpath expr="//header" position="inside">
                    <button string="Send Password Reset Instructions" type="object" name="action_reset_password" invisible="state != 'active'"/>
                    <button string="Send an Invitation Email" type="object" name="action_reset_password" context="{'create_user': 1}" invisible="state != 'new'"/>
                    <field name="state" widget="statusbar"/>
                </xpath>
            