From ef2a3696c43cedd72bdafa63c77064b93960b801 Mon Sep 17 00:00:00 2001 From: Lanto Razafindrabe Date: Fri, 7 Jun 2024 10:29:00 +0300 Subject: [PATCH] TA#66297 [FIX] hr_employee_type : ttype accessibility group --- hr_employee_type/models/__init__.py | 2 +- .../models/{hr_employee_base.py => hr_employee.py} | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename hr_employee_type/models/{hr_employee_base.py => hr_employee.py} (75%) diff --git a/hr_employee_type/models/__init__.py b/hr_employee_type/models/__init__.py index 051b59a..c96cb06 100644 --- a/hr_employee_type/models/__init__.py +++ b/hr_employee_type/models/__init__.py @@ -1,4 +1,4 @@ # © 2020 - today Numigi (tm) and all its contributors (https://bit.ly/numigiens) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from . import hr_employee_base +from . import hr_employee diff --git a/hr_employee_type/models/hr_employee_base.py b/hr_employee_type/models/hr_employee.py similarity index 75% rename from hr_employee_type/models/hr_employee_base.py rename to hr_employee_type/models/hr_employee.py index c2cde52..3b003c9 100644 --- a/hr_employee_type/models/hr_employee_base.py +++ b/hr_employee_type/models/hr_employee.py @@ -3,10 +3,11 @@ from odoo import models, fields -class HrEmployeeBase(models.AbstractModel): - _inherit = "hr.employee.base" +class HrEmployeeType(models.Model): + _inherit = "hr.employee" ttype = fields.Selection( [("internal", "Internal"), ("external", "External")], "Type", default="internal", + groups="base.group_hr_user", )