31 lines
745 B
Python
31 lines
745 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from odoo import models, fields, api
|
|
|
|
|
|
GENDER_SELECTION = [
|
|
('0', '男'),
|
|
('1', '女'),
|
|
('99', '其他'),
|
|
]
|
|
|
|
|
|
class YuthonExpertDatabase(models.Model):
|
|
_name = 'yuthon.expert.database'
|
|
_description = '专家库'
|
|
|
|
name = fields.Char(string='姓名')
|
|
gender = fields.Selection(selection=GENDER_SELECTION, string='性别')
|
|
company = fields.Char(string='单位名称')
|
|
id_number = fields.Char(string='身份证号')
|
|
certificate_number = fields.Char(string='评估师证书号')
|
|
phone = fields.Char(string='联系电话')
|
|
email = fields.Char(string='邮箱')
|
|
effective_date = fields.Date(string='生效日期')
|
|
expiration_date = fields.Date(string='失效日期')
|
|
|
|
|
|
|
|
|
|
|