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

        <!-- ============================================================ -->
        <!-- FISCAL YEAR 2025                                              -->
        <!-- Note: This references account.fiscal.year - ensure it exists  -->
        <!-- ============================================================ -->

        <!-- ============================================================ -->
        <!-- FEDERAL TAX RATES 2025                                        -->
        <!-- Source: Canada Revenue Agency (CRA) 2025 Tax Brackets         -->
        <!-- ============================================================ -->
        <record id="federal_tax" model="tax.yearly.rates">
            <field name="tax_type">federal</field>
            <field name="canada_emp_amount">1433.00</field>
            <!-- fiscal_year field should reference your fiscal year record -->
        </record>

        <!-- Federal Tax Bracket 1: 15% on first $55,867 -->
        <record id="federal_tax_line_1" model="tax.yearly.rate.line">
            <field name="tax_id" ref="federal_tax"/>
            <field name="tax_bracket">55867.00</field>
            <field name="tax_rate">15.00</field>
            <field name="tax_constant">0.00</field>
        </record>

        <!-- Federal Tax Bracket 2: 20.5% on $55,867 to $111,733 -->
        <record id="federal_tax_line_2" model="tax.yearly.rate.line">
            <field name="tax_id" ref="federal_tax"/>
            <field name="tax_bracket">111733.00</field>
            <field name="tax_rate">20.50</field>
            <field name="tax_constant">0.00</field>
        </record>

        <!-- Federal Tax Bracket 3: 26% on $111,733 to $173,205 -->
        <record id="federal_tax_line_3" model="tax.yearly.rate.line">
            <field name="tax_id" ref="federal_tax"/>
            <field name="tax_bracket">173205.00</field>
            <field name="tax_rate">26.00</field>
            <field name="tax_constant">0.00</field>
        </record>

        <!-- Federal Tax Bracket 4: 29% on $173,205 to $246,752 -->
        <record id="federal_tax_line_4" model="tax.yearly.rate.line">
            <field name="tax_id" ref="federal_tax"/>
            <field name="tax_bracket">246752.00</field>
            <field name="tax_rate">29.00</field>
            <field name="tax_constant">0.00</field>
        </record>

        <!-- Federal Tax Bracket 5: 33% on over $246,752 -->
        <record id="federal_tax_line_5" model="tax.yearly.rate.line">
            <field name="tax_id" ref="federal_tax"/>
            <field name="tax_bracket">246752.01</field>
            <field name="tax_rate">33.00</field>
            <field name="tax_constant">0.00</field>
        </record>

        <!-- ============================================================ -->
        <!-- PROVINCIAL TAX RATES 2025 - ONTARIO                           -->
        <!-- Source: Ontario 2025 Tax Brackets                             -->
        <!-- ============================================================ -->
        <record id="provincial_tax" model="tax.yearly.rates">
            <field name="tax_type">provincial</field>
            <!-- fiscal_year field should reference your fiscal year record -->
        </record>

        <!-- Ontario Tax Bracket 1: 5.05% on first $52,886 -->
        <record id="provincial_tax_line_1" model="tax.yearly.rate.line">
            <field name="tax_id" ref="provincial_tax"/>
            <field name="tax_bracket">52886.00</field>
            <field name="tax_rate">5.05</field>
            <field name="tax_constant">0.00</field>
        </record>

        <!-- Ontario Tax Bracket 2: 9.15% on $52,886 to $105,775 -->
        <record id="provincial_tax_line_2" model="tax.yearly.rate.line">
            <field name="tax_id" ref="provincial_tax"/>
            <field name="tax_bracket">105775.00</field>
            <field name="tax_rate">9.15</field>
            <field name="tax_constant">0.00</field>
        </record>

        <!-- Ontario Tax Bracket 3: 11.16% on $105,775 to $150,000 -->
        <record id="provincial_tax_line_3" model="tax.yearly.rate.line">
            <field name="tax_id" ref="provincial_tax"/>
            <field name="tax_bracket">150000.00</field>
            <field name="tax_rate">11.16</field>
            <field name="tax_constant">0.00</field>
        </record>

        <!-- Ontario Tax Bracket 4: 12.16% on $150,000 to $220,000 -->
        <record id="provincial_tax_line_4" model="tax.yearly.rate.line">
            <field name="tax_id" ref="provincial_tax"/>
            <field name="tax_bracket">220000.00</field>
            <field name="tax_rate">12.16</field>
            <field name="tax_constant">0.00</field>
        </record>

        <!-- Ontario Tax Bracket 5: 13.16% on over $220,000 -->
        <record id="provincial_tax_line_5" model="tax.yearly.rate.line">
            <field name="tax_id" ref="provincial_tax"/>
            <field name="tax_bracket">220000.01</field>
            <field name="tax_rate">13.16</field>
            <field name="tax_constant">0.00</field>
        </record>

        <!-- ============================================================ -->
        <!-- CPP - CANADA PENSION PLAN 2025                                -->
        <!-- ============================================================ -->
        <record id="cpp_ded" model="tax.yearly.rates">
            <field name="ded_type">cpp</field>
            <field name="emp_contribution_rate">5.95</field>
            <field name="employer_contribution_rate">5.95</field>
            <field name="exemption">134.61</field>
            <field name="max_cpp">4034.10</field>
            <!-- fiscal_year field should reference your fiscal year record -->
        </record>

        <!-- ============================================================ -->
        <!-- EI - EMPLOYMENT INSURANCE 2025                                -->
        <!-- ============================================================ -->
        <record id="ei_ded" model="tax.yearly.rates">
            <field name="ded_type">ei</field>
            <field name="ei_rate">1.64</field>
            <field name="ei_earnings">65700.00</field>
            <field name="emp_ei_amount">1077.48</field>
            <field name="employer_ei_amount">1508.47</field>
            <!-- fiscal_year field should reference your fiscal year record -->
        </record>

    </data>
</odoo>
