<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="res_config_settings_view_form_fusion_cp" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.fusion.canada.post</field>
        <field name="model">res.config.settings</field>
        <field name="inherit_id" ref="base.res_config_settings_view_form"/>
        <field name="arch" type="xml">
            <xpath expr="//form" position="inside">
                <app data-string="Canada Post" string="Canada Post"
                     name="fusion_canada_post">
                    <block title="Carrier Configuration" name="carrier_config_block">
                        <setting string="Canada Post Carrier Settings"
                                 help="Configure your Canada Post API credentials, service types, label format, and shipping preferences.">
                            <div class="content-group">
                                <div class="mt8">
                                    <button name="%(fusion_canada_post.action_fusion_cp_carrier_settings)d"
                                            type="action"
                                            class="btn-link"
                                            icon="oi-arrow-right"
                                            string="Open Carrier Configuration"/>
                                </div>
                            </div>
                        </setting>
                        <setting string="Shipment History"
                                 help="View and manage all Canada Post shipments, labels, and tracking information.">
                            <div class="content-group">
                                <div class="mt8">
                                    <button name="%(fusion_canada_post.action_fusion_cp_shipment)d"
                                            type="action"
                                            class="btn-link"
                                            icon="oi-arrow-right"
                                            string="View Shipments"/>
                                </div>
                            </div>
                        </setting>
                    </block>
                </app>
            </xpath>
        </field>
    </record>
</odoo>
