Files
Odoo-Modules/fusion_payroll/models/hr_contract.py
2026-02-22 01:22:18 -05:00

26 lines
777 B
Python

# -*- 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',
)