# -*- coding: utf-8 -*- ############################################################################# # A part of Open HRMS Project # # Cybrosys Technologies Pvt. Ltd. # # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # # You can modify it under the terms of the GNU LESSER # GENERAL PUBLIC LICENSE (LGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. # # You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE # (LGPL v3) along with this program. # If not, see . # ############################################################################# from odoo import fields, models class HrEmployee(models.Model): """ Extends the 'hr.employee' model to include additional fields related to employee resignation. """ _inherit = 'hr.employee' resign_date = fields.Date(string='Resign Date', readonly=True, help="Date of the resignation") resigned = fields.Boolean(string="Resigned", default=False, help="If checked then employee has resigned") fired = fields.Boolean(string="Fired", default=False, help="If checked then employee has fired")