<?xml version="1.0"?>
<data><xpath expr="//page[@name='technical_data']" position="attributes">
                    <attribute name="invisible">module_type != 'official'</attribute>
                </xpath>
                <xpath expr="//button[@name='button_immediate_install']" position="after">
                    <button type="object" class="btn btn-primary me-1" name="button_immediate_install_app" invisible="state != 'uninstalled' or module_type in ('official', False)" groups="base.group_system">Activate</button>
                    <button type="object" class="btn btn-primary me-1" name="button_immediate_install_app" invisible="state == 'uninstalled' or module_type in ('official', False)" groups="base.group_system">Upgrade</button>
                </xpath>
                <xpath expr="//button[@name='button_immediate_install']" position="attributes">
                    <attribute name="invisible">to_buy or state != 'uninstalled' or (module_type and module_type != 'official')</attribute>
                </xpath>
                <xpath expr="//button[@name='button_immediate_upgrade']" position="attributes">
                    <attribute name="invisible">state == 'uninstalled' or (module_type and module_type != 'official')</attribute>
                </xpath>
            </data>