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

    <!-- ================================================================== -->
    <!--  Package Types  (noupdate="0" so they refresh on module upgrade)    -->
    <!-- ================================================================== -->
    <data noupdate="0">

    <!-- ── Standard Canada Post Box Sizes (inches / lbs) ── -->

    <record id="fusion_cp_pkg_26x20x20" model="stock.package.type">
        <field name="name">CP Box 26x20x20 in, 35 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">26</field>
        <field name="width">20</field>
        <field name="height">20</field>
        <field name="max_weight">35</field>
    </record>

    <record id="fusion_cp_pkg_26x26x9" model="stock.package.type">
        <field name="name">CP Box 26x26x9 in, 15 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">26</field>
        <field name="width">26</field>
        <field name="height">9</field>
        <field name="max_weight">15</field>
    </record>

    <record id="fusion_cp_pkg_32x28x10" model="stock.package.type">
        <field name="name">CP Box 32x28x10 in, 12 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">32</field>
        <field name="width">28</field>
        <field name="height">10</field>
        <field name="max_weight">12</field>
    </record>

    <record id="fusion_cp_pkg_34x28x10" model="stock.package.type">
        <field name="name">CP Box 34x28x10 in, 10 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">34</field>
        <field name="width">28</field>
        <field name="height">10</field>
        <field name="max_weight">10</field>
    </record>

    <record id="fusion_cp_pkg_9x25x27" model="stock.package.type">
        <field name="name">CP Box 9x25x27 in, 16 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">9</field>
        <field name="width">25</field>
        <field name="height">27</field>
        <field name="max_weight">16</field>
    </record>

    <record id="fusion_cp_pkg_9x25x29" model="stock.package.type">
        <field name="name">CP Box 9x25x29 in, 17 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">9</field>
        <field name="width">25</field>
        <field name="height">29</field>
        <field name="max_weight">17</field>
    </record>

    <record id="fusion_cp_pkg_10x10x6" model="stock.package.type">
        <field name="name">CP Box 10x10x6 in, 35 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">10</field>
        <field name="width">10</field>
        <field name="height">6</field>
        <field name="max_weight">35</field>
    </record>

    <record id="fusion_cp_pkg_25x15x30" model="stock.package.type">
        <field name="name">CP Box 25x15x30 in, 25 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">25</field>
        <field name="width">15</field>
        <field name="height">30</field>
        <field name="max_weight">25</field>
    </record>

    <record id="fusion_cp_pkg_10x10x10" model="stock.package.type">
        <field name="name">CP Box 10x10x10 in, 2 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">10</field>
        <field name="width">10</field>
        <field name="height">10</field>
        <field name="max_weight">2</field>
    </record>

    <record id="fusion_cp_pkg_28x15x30" model="stock.package.type">
        <field name="name">CP Box 28x15x30 in, 40 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">28</field>
        <field name="width">15</field>
        <field name="height">30</field>
        <field name="max_weight">40</field>
    </record>

    <record id="fusion_cp_pkg_28x10x30" model="stock.package.type">
        <field name="name">CP Box 28x10x30 in, 16 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">28</field>
        <field name="width">10</field>
        <field name="height">30</field>
        <field name="max_weight">16</field>
    </record>

    <record id="fusion_cp_pkg_22x10x6_cm" model="stock.package.type">
        <field name="name">CP Box 22x10x6 cm, 10 kg</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">22</field>
        <field name="width">10</field>
        <field name="height">6</field>
        <field name="max_weight">10</field>
    </record>

    <record id="fusion_cp_pkg_22x13x6" model="stock.package.type">
        <field name="name">CP Box 22x13x6 in, 10 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">22</field>
        <field name="width">13</field>
        <field name="height">6</field>
        <field name="max_weight">10</field>
    </record>

    <record id="fusion_cp_pkg_12x10x5" model="stock.package.type">
        <field name="name">CP Box 12x10x5 in, 2 lb</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">12</field>
        <field name="width">10</field>
        <field name="height">5</field>
        <field name="max_weight">2</field>
    </record>

    <!-- Old default box - replaced with a standard size -->
    <record id="fusion_cp_packaging_BOX" model="stock.package.type">
        <field name="name">CP Box 10x10x10 in (Legacy)</field>
        <field name="package_carrier_type">fusion_canada_post</field>
        <field name="packaging_length">10</field>
        <field name="width">10</field>
        <field name="height">10</field>
        <field name="max_weight">2</field>
    </record>

    <!-- ── UPS REST Package Types ── -->

    <record id="fusion_ups_rest_packaging_01" model="stock.package.type">
        <field name="name">UPS Letter</field>
        <field name="shipper_package_code">01</field>
        <field name="package_carrier_type">fusion_ups_rest</field>
        <field name="max_weight">0.5</field>
    </record>

    <record id="fusion_ups_rest_packaging_02" model="stock.package.type">
        <field name="name">UPS Package/customer supplied</field>
        <field name="shipper_package_code">02</field>
        <field name="height">10</field>
        <field name="width">10</field>
        <field name="packaging_length">10</field>
        <field name="package_carrier_type">fusion_ups_rest</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_rest_packaging_03" model="stock.package.type">
        <field name="name">UPS Tube</field>
        <field name="shipper_package_code">03</field>
        <field name="package_carrier_type">fusion_ups_rest</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_rest_packaging_04" model="stock.package.type">
        <field name="name">UPS Pak</field>
        <field name="shipper_package_code">04</field>
        <field name="package_carrier_type">fusion_ups_rest</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_rest_packaging_21" model="stock.package.type">
        <field name="name">UPS Express Box</field>
        <field name="shipper_package_code">21</field>
        <field name="package_carrier_type">fusion_ups_rest</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_rest_packaging_24" model="stock.package.type">
        <field name="name">UPS 25KG Box</field>
        <field name="shipper_package_code">24</field>
        <field name="package_carrier_type">fusion_ups_rest</field>
        <field name="max_weight">25</field>
    </record>

    <record id="fusion_ups_rest_packaging_25" model="stock.package.type">
        <field name="name">UPS 10KG Box</field>
        <field name="shipper_package_code">25</field>
        <field name="package_carrier_type">fusion_ups_rest</field>
        <field name="max_weight">10</field>
    </record>

    <record id="fusion_ups_rest_packaging_30" model="stock.package.type">
        <field name="name">UPS Pallet</field>
        <field name="shipper_package_code">30</field>
        <field name="height">10</field>
        <field name="width">10</field>
        <field name="packaging_length">10</field>
        <field name="package_carrier_type">fusion_ups_rest</field>
        <field name="max_weight">1000</field>
    </record>

    <record id="fusion_ups_rest_packaging_2a" model="stock.package.type">
        <field name="name">UPS Small Express Box</field>
        <field name="shipper_package_code">2a</field>
        <field name="package_carrier_type">fusion_ups_rest</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_rest_packaging_2b" model="stock.package.type">
        <field name="name">UPS Medium Express Box</field>
        <field name="shipper_package_code">2b</field>
        <field name="package_carrier_type">fusion_ups_rest</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_rest_packaging_2c" model="stock.package.type">
        <field name="name">UPS Large Express Box</field>
        <field name="shipper_package_code">2c</field>
        <field name="package_carrier_type">fusion_ups_rest</field>
        <field name="max_weight">68</field>
    </record>

    <!-- ── UPS SOAP (Legacy) Package Types ── -->

    <record id="fusion_ups_packaging_01" model="stock.package.type">
        <field name="name">UPS Letter</field>
        <field name="shipper_package_code">01</field>
        <field name="package_carrier_type">fusion_ups</field>
        <field name="max_weight">0.5</field>
    </record>

    <record id="fusion_ups_packaging_02" model="stock.package.type">
        <field name="name">UPS Package/customer supplied</field>
        <field name="shipper_package_code">02</field>
        <field name="height">52</field>
        <field name="width">52</field>
        <field name="packaging_length">52</field>
        <field name="package_carrier_type">fusion_ups</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_packaging_03" model="stock.package.type">
        <field name="name">UPS Tube</field>
        <field name="shipper_package_code">03</field>
        <field name="package_carrier_type">fusion_ups</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_packaging_04" model="stock.package.type">
        <field name="name">UPS Pak</field>
        <field name="shipper_package_code">04</field>
        <field name="package_carrier_type">fusion_ups</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_packaging_21" model="stock.package.type">
        <field name="name">UPS Express Box</field>
        <field name="shipper_package_code">21</field>
        <field name="package_carrier_type">fusion_ups</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_packaging_24" model="stock.package.type">
        <field name="name">UPS 25KG Box</field>
        <field name="shipper_package_code">24</field>
        <field name="package_carrier_type">fusion_ups</field>
        <field name="max_weight">25</field>
    </record>

    <record id="fusion_ups_packaging_25" model="stock.package.type">
        <field name="name">UPS 10KG Box</field>
        <field name="shipper_package_code">25</field>
        <field name="package_carrier_type">fusion_ups</field>
        <field name="max_weight">10</field>
    </record>

    <record id="fusion_ups_packaging_30" model="stock.package.type">
        <field name="name">UPS Pallet</field>
        <field name="shipper_package_code">30</field>
        <field name="height">1920</field>
        <field name="width">2133</field>
        <field name="packaging_length">3048</field>
        <field name="package_carrier_type">fusion_ups</field>
        <field name="max_weight">1000</field>
    </record>

    <record id="fusion_ups_packaging_2a" model="stock.package.type">
        <field name="name">UPS Small Express Box</field>
        <field name="shipper_package_code">2a</field>
        <field name="package_carrier_type">fusion_ups</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_packaging_2b" model="stock.package.type">
        <field name="name">UPS Medium Express Box</field>
        <field name="shipper_package_code">2b</field>
        <field name="package_carrier_type">fusion_ups</field>
        <field name="max_weight">68</field>
    </record>

    <record id="fusion_ups_packaging_2c" model="stock.package.type">
        <field name="name">UPS Flat Pack</field>
        <field name="shipper_package_code">2c</field>
        <field name="package_carrier_type">fusion_ups</field>
        <field name="max_weight">68</field>
    </record>

    <!-- ── FedEx REST Package Types ── -->

    <record id="fusion_fedex_rest_packaging_FEDEX_BOX" model="stock.package.type">
        <field name="name">FedEx Box</field>
        <field name="shipper_package_code">FEDEX_BOX</field>
        <field name="package_carrier_type">fusion_fedex_rest</field>
        <field name="max_weight">9.07</field>
    </record>

    <record id="fusion_fedex_rest_packaging_FEDEX_10KG_BOX" model="stock.package.type">
        <field name="name">FedEx 10kg Box</field>
        <field name="shipper_package_code">FEDEX_10KG_BOX</field>
        <field name="package_carrier_type">fusion_fedex_rest</field>
        <field name="max_weight">10</field>
    </record>

    <record id="fusion_fedex_rest_packaging_FEDEX_25KG_BOX" model="stock.package.type">
        <field name="name">FedEx 25kg Box</field>
        <field name="shipper_package_code">FEDEX_25KG_BOX</field>
        <field name="package_carrier_type">fusion_fedex_rest</field>
        <field name="max_weight">25</field>
    </record>

    <record id="fusion_fedex_rest_packaging_FEDEX_ENVELOPE" model="stock.package.type">
        <field name="name">FedEx Letters</field>
        <field name="shipper_package_code">FEDEX_ENVELOPE</field>
        <field name="package_carrier_type">fusion_fedex_rest</field>
        <field name="max_weight">0.5</field>
    </record>

    <record id="fusion_fedex_rest_packaging_FEDEX_PAK" model="stock.package.type">
        <field name="name">FedEx Pak</field>
        <field name="shipper_package_code">FEDEX_PAK</field>
        <field name="package_carrier_type">fusion_fedex_rest</field>
        <field name="max_weight">9.07</field>
    </record>

    <record id="fusion_fedex_rest_packaging_FEDEX_TUBE" model="stock.package.type">
        <field name="name">FedEx Tube</field>
        <field name="shipper_package_code">FEDEX_TUBE</field>
        <field name="package_carrier_type">fusion_fedex_rest</field>
        <field name="max_weight">9.07</field>
    </record>

    <record id="fusion_fedex_rest_packaging_YOUR_PACKAGING" model="stock.package.type">
        <field name="name">FedEx Your Packaging</field>
        <field name="shipper_package_code">YOUR_PACKAGING</field>
        <field name="package_carrier_type">fusion_fedex_rest</field>
    </record>

    <!-- ── FedEx SOAP (Legacy) Package Types ── -->

    <record id="fusion_fedex_packaging_FEDEX_BOX" model="stock.package.type">
        <field name="name">FedEx Box</field>
        <field name="shipper_package_code">FEDEX_BOX</field>
        <field name="package_carrier_type">fusion_fedex</field>
        <field name="max_weight">9.07</field>
    </record>

    <record id="fusion_fedex_packaging_FEDEX_10KG_BOX" model="stock.package.type">
        <field name="name">FedEx 10kg Box</field>
        <field name="shipper_package_code">FEDEX_10KG_BOX</field>
        <field name="package_carrier_type">fusion_fedex</field>
        <field name="max_weight">10</field>
    </record>

    <record id="fusion_fedex_packaging_FEDEX_25KG_BOX" model="stock.package.type">
        <field name="name">FedEx 25kg Box</field>
        <field name="shipper_package_code">FEDEX_25KG_BOX</field>
        <field name="package_carrier_type">fusion_fedex</field>
        <field name="max_weight">25</field>
    </record>

    <record id="fusion_fedex_packaging_FEDEX_ENVELOPE" model="stock.package.type">
        <field name="name">FedEx Letters</field>
        <field name="shipper_package_code">FEDEX_ENVELOPE</field>
        <field name="package_carrier_type">fusion_fedex</field>
        <field name="max_weight">0.5</field>
    </record>

    <record id="fusion_fedex_packaging_FEDEX_PAK" model="stock.package.type">
        <field name="name">FedEx Pak</field>
        <field name="shipper_package_code">FEDEX_PAK</field>
        <field name="package_carrier_type">fusion_fedex</field>
        <field name="max_weight">0</field>
    </record>

    <record id="fusion_fedex_packaging_FEDEX_TUBE" model="stock.package.type">
        <field name="name">FedEx Tube</field>
        <field name="shipper_package_code">FEDEX_TUBE</field>
        <field name="package_carrier_type">fusion_fedex</field>
        <field name="max_weight">9.07</field>
    </record>

    <record id="fusion_fedex_packaging_YOUR_PACKAGING" model="stock.package.type">
        <field name="name">FedEx Your Packaging</field>
        <field name="shipper_package_code">YOUR_PACKAGING</field>
        <field name="package_carrier_type">fusion_fedex</field>
    </record>

    <!-- ── DHL REST Package Types ── -->

    <record id="fusion_dhl_rest_packaging_FLY" model="stock.package.type">
        <field name="name">DHL Flyer/Smalls</field>
        <field name="shipper_package_code">FLY</field>
        <field name="package_carrier_type">fusion_dhl_rest</field>
        <field name="max_weight">0.23</field>
    </record>

    <record id="fusion_dhl_rest_packaging_COY" model="stock.package.type">
        <field name="name">DHL Parcels/Conveyables</field>
        <field name="shipper_package_code">COY</field>
        <field name="package_carrier_type">fusion_dhl_rest</field>
        <field name="max_weight">31.5</field>
    </record>

    <record id="fusion_dhl_rest_packaging_NCY" model="stock.package.type">
        <field name="name">DHL Non-conveyables</field>
        <field name="shipper_package_code">NCY</field>
        <field name="package_carrier_type">fusion_dhl_rest</field>
    </record>

    <record id="fusion_dhl_rest_packaging_PAL" model="stock.package.type">
        <field name="name">DHL Pallets</field>
        <field name="shipper_package_code">PAL</field>
        <field name="height">160</field>
        <field name="width">120</field>
        <field name="packaging_length">120</field>
        <field name="package_carrier_type">fusion_dhl_rest</field>
        <field name="max_weight">1000</field>
    </record>

    <record id="fusion_dhl_rest_packaging_DBL" model="stock.package.type">
        <field name="name">DHL Double Pallets</field>
        <field name="shipper_package_code">DBL</field>
        <field name="package_carrier_type">fusion_dhl_rest</field>
        <field name="max_weight">1000</field>
    </record>

    <record id="fusion_dhl_rest_packaging_BOX" model="stock.package.type">
        <field name="name">DHL Box</field>
        <field name="shipper_package_code">BOX</field>
        <field name="height">40</field>
        <field name="width">44</field>
        <field name="packaging_length">54</field>
        <field name="package_carrier_type">fusion_dhl_rest</field>
        <field name="max_weight">70</field>
    </record>

    <!-- ── DHL SOAP (Legacy) Package Types ── -->

    <record id="fusion_dhl_packaging_FLY" model="stock.package.type">
        <field name="name">DHL Flyer/Smalls</field>
        <field name="shipper_package_code">FLY</field>
        <field name="package_carrier_type">fusion_dhl</field>
        <field name="max_weight">0.23</field>
    </record>

    <record id="fusion_dhl_packaging_COY" model="stock.package.type">
        <field name="name">DHL Parcels/Conveyables</field>
        <field name="shipper_package_code">COY</field>
        <field name="package_carrier_type">fusion_dhl</field>
        <field name="max_weight">31.5</field>
    </record>

    <record id="fusion_dhl_packaging_NCY" model="stock.package.type">
        <field name="name">DHL Non-conveyables</field>
        <field name="shipper_package_code">NCY</field>
        <field name="package_carrier_type">fusion_dhl</field>
    </record>

    <record id="fusion_dhl_packaging_PAL" model="stock.package.type">
        <field name="name">DHL Pallets</field>
        <field name="shipper_package_code">PAL</field>
        <field name="height">1600</field>
        <field name="width">1200</field>
        <field name="packaging_length">1200</field>
        <field name="package_carrier_type">fusion_dhl</field>
        <field name="max_weight">1000</field>
    </record>

    <record id="fusion_dhl_packaging_DBL" model="stock.package.type">
        <field name="name">DHL Double Pallets</field>
        <field name="shipper_package_code">DBL</field>
        <field name="package_carrier_type">fusion_dhl</field>
        <field name="max_weight">1000</field>
    </record>

    <record id="fusion_dhl_packaging_BOX" model="stock.package.type">
        <field name="name">DHL Box</field>
        <field name="shipper_package_code">BOX</field>
        <field name="height">40</field>
        <field name="width">44</field>
        <field name="packaging_length">54</field>
        <field name="package_carrier_type">fusion_dhl</field>
        <field name="max_weight">70</field>
    </record>

    </data>

    <!-- ================================================================== -->
    <!--  Sequences & Products  (noupdate="1")                              -->
    <!-- ================================================================== -->
    <data noupdate="1">

    <!-- ── DHL Commercial Invoice Sequence ── -->

    <record id="dhl_commercial_invoice_seq" model="ir.sequence">
        <field name="name">DHL Commercial Invoice</field>
        <field name="code">delivery_dhl_rest.commercial_invoice</field>
        <field name="prefix">CI</field>
        <field name="padding">5</field>
    </record>

    <!-- ── Canada Post Delivery Product ── -->

    <record id="product_product_delivery_fusion_canada_post" model="product.product">
        <field name="name">SHIPPING BY CANADA POST</field>
        <field name="default_code">CPSHIPPING</field>
        <field name="type">service</field>
        <field name="categ_id" ref="delivery.product_category_deliveries"/>
        <field name="sale_ok" eval="False"/>
        <field name="purchase_ok" eval="False"/>
        <field name="list_price">0.0</field>
    </record>

    <!-- ── Default Canada Post Carrier ── -->

    <record id="delivery_carrier_fusion_canada_post" model="delivery.carrier">
        <field name="name">Canada Post</field>
        <field
            name="product_id"
            ref="fusion_shipping.product_product_delivery_fusion_canada_post"
        />
        <field name="delivery_type">fusion_canada_post</field>
        <field name="fusion_cp_type">commercial</field>
        <field name="fusion_cp_dimension_unit">in</field>
        <field name="option_code">SO</field>
        <field name="service_type">DOM.RP</field>
    </record>

    </data>

</odoo>
