12 lines
382 B
Python
12 lines
382 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class YuthonHrEmployee(models.Model):
|
|
"""
|
|
对原模型数据的隐藏,字段的开发和添加
|
|
"""
|
|
_inherit = "hr.employee"
|
|
|
|
user_role_id = fields.Many2one('soong.user.role', string="主角色", store=True)
|
|
user_role_ids = fields.Many2many('soong.user.role', string="辅助角色", store=True) |