更新
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from odoo import api, fields, models, _
|
||||
|
||||
|
||||
class YuthonUserRole(models.Model):
|
||||
_name = 'soong.user.role'
|
||||
|
||||
name = fields.Char(string="角色名称")
|
||||
user_type = fields.Selection([("oa_admin", "OA管理员"),
|
||||
("system_global_user", "系统全局角色"),
|
||||
("departmental_role", "部门私有角色")], string="角色类型")
|
||||
department_id = fields.Many2one('hr.department', string="所属机构部门")
|
||||
create_time = fields.Datetime(string="创建时间", default=fields.Datetime.now)
|
||||
end_time = fields.Datetime(string="结束时间")
|
||||
company_id = fields.Many2one('res.company', string='公司', index=True, default=lambda self: self.env.company)
|
||||
Reference in New Issue
Block a user