from odoo import fields, models


class HrEmployeeCategory(models.Model):
    _inherit = "hr.employee.category"

    xeno_module_ids = fields.Many2many(
        "xeno.hr.module", string="Grants Module Access",
        groups="hr.group_hr_user",
        help="Every employee carrying this tag automatically gets access "
             "to these modules (Employee Group behavior from XENHR's "
             "System Access page). Wins over the individual per-employee "
             "toggle -- the per-employee toggle is disabled wherever a "
             "tag already grants the same module.")
