# -*- coding: utf-8 -*-

from odoo import models, fields, api


class HrContract(models.Model):
    _inherit = 'hr.contract'

    # === Work Location ===
    work_location_id = fields.Many2one(
        'payroll.work.location',
        string='Primary Work Location',
        help='Primary work location for this contract (used for tax calculations)',
        domain="[('company_id', '=', company_id), ('status', '=', 'active')]",
    )

    # === Canadian Tax Credits ===
    fed_tax_credit = fields.Float(
        string='Federal Tax Credit',
        help='Federal personal tax credit amount for the employee',
    )
    provincial_tax_credit = fields.Float(
        string='Provincial Tax Credit',
        help='Provincial personal tax credit amount for the employee',
    )
