odoo-metatroncube/addons/c2c_payroll/models/contract_extension.py
2026-03-05 17:08:54 +05:30

24 lines
746 B
Python

# -*- coding: utf-8 -*-
from odoo import fields, models
class ContractExtension(models.Model):
_inherit = 'hr.contract'
salary_structure_id = fields.Many2one(
'c2c.salary.structure', string='Salary Structure',
help='Salary structure used for payslip computation.',
)
gross_salary = fields.Float(
string='Gross Salary',
help='Total gross salary (CTC) before deductions.',
)
pf_applicable = fields.Boolean(
string='PF Applicable', default=True,
help='Whether Provident Fund deduction applies to this contract.',
)
esi_applicable = fields.Boolean(
string='ESI Applicable', default=False,
help='Whether ESI deduction applies to this contract.',
)