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

    <!-- Inherit base settings form and add Fusion Labels app block -->
    <record id="res_config_settings_view_form" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.fusion_labels</field>
        <field name="model">res.config.settings</field>
        <field name="inherit_id" ref="base.res_config_settings_view_form"/>
        <field name="priority">60</field>
        <field name="arch" type="xml">
            <xpath expr="//form" position="inside">
                <app string="Fusion Labels" name="fusion_labels" logo="/fusion_labels/static/description/icon.png">
                    <block title="General" id="fusion_labels_general">
                        <setting id="fusion_labels_replace_wizard"
                                 string="Alternative Print Wizard"
                                 help="Use the custom print wizard by clicking on the 'Print Labels' button instead of the standard Odoo label printing wizard.">
                            <field name="replace_standard_wizard"/>
                        </setting>
                    </block>
                </app>
            </xpath>
        </field>
    </record>

    <!-- Settings action -->
    <record id="res_config_settings_action_fusion_labels" model="ir.actions.act_window">
        <field name="name">Settings</field>
        <field name="res_model">res.config.settings</field>
        <field name="view_mode">form</field>
        <field name="target">main</field>
        <field name="context">{'module': 'fusion_labels'}</field>
    </record>

    <!-- Settings menu under Settings -->
    <menuitem id="menu_fusion_labels_config"
              name="Fusion Labels"
              parent="base.menu_administration"
              action="res_config_settings_action_fusion_labels"
              sequence="55"
              groups="base.group_system"/>

</odoo>
