1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/hr_contract_salary/models/hr_job.py
2024-12-10 09:04:09 +07:00

13 lines
501 B
Python

# -*- coding:utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class HrJob(models.Model):
_inherit = 'hr.job'
default_contract_id = fields.Many2one('hr.contract', domain="[('company_id', '=', company_id), ('employee_id', '=', False)]", string="Contract Template",
help="Default contract used to generate an offer. If empty, benefits will be taken from current contract of the employee/nothing for an applicant.")