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", )