Initial commit
This commit is contained in:
25
fusion_payroll/models/hr_contract.py
Normal file
25
fusion_payroll/models/hr_contract.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# -*- 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',
|
||||
)
|
||||
Reference in New Issue
Block a user