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

                <xpath expr="//sheet" position="before">
                    <div class="alert alert-success text-center o_form_header alert-dismissible" attrs="{'invisible': [('signup_valid', '!=', True)]}" role="status">
                        <button class="btn-close" data-bs-dismiss="alert" aria-label="Close"/>
                        <div attrs="{'invisible': [('state', '!=', 'active')]}">
                            <strong>A password reset has been requested for this user. An email containing the following link has been sent:</strong>
                        </div>
                        <div attrs="{'invisible': [('state', '!=', 'new')]}">
                            <strong>An invitation email containing the following subscription link has been sent:</strong>
                        </div>
                        <div><field name="signup_url" widget="url"/></div>
                         <field name="signup_valid" invisible="1"/>
                     </div>
                 </xpath>
            </data>