16 lines
853 B
Python
16 lines
853 B
Python
# -*- 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="结束时间")
|
|
yuthon_company = fields.Selection([('thtz', '天河投资集团'), ('thwg', '天河物管'), ('thlc', '天河粮储'), ('tctj', '天投城建'),('thtjbb', '天河投资本部')], string="所属公司")
|