# -*- 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.', )