a2efc9fcommitted a hr_employee.py with unresolved <<<<<<< HEAD / >>>>>>> Stashed changes markers — Python wouldn't have imported the file. Restoring to f340c87's version. The intended fix (Odoo 19 'in' operator handling) lives on main as0f41eb1.
25 lines
854 B
Python
25 lines
854 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2026 Nexa Systems Inc.
|
|
# License OPL-1 (Odoo Proprietary License v1.0)
|
|
# Part of the Fusion Plating product family.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class HrEmployee(models.Model):
|
|
"""Tag employees with the shop roles they can perform.
|
|
|
|
An employee with role 'masking' receives the masking steps when WOs
|
|
are generated; an employee with multiple roles receives WOs for all
|
|
of them. A small shop where the owner wears every hat just tags
|
|
themselves with every role.
|
|
"""
|
|
_inherit = 'hr.employee'
|
|
|
|
x_fc_work_role_ids = fields.Many2many(
|
|
'fp.work.role', 'fp_employee_work_role_rel',
|
|
'employee_id', 'role_id', string='Shop Roles',
|
|
help='Which shop roles this employee performs. Used by the '
|
|
'Manager Desk and auto-assignment on WO generation.',
|
|
)
|