# -*- coding: utf-8 -*- from odoo import fields, models class InheritUsers(models.Model): _inherit = "res.users" opentker_user_type = fields.Selection([ ("odoo", "odoo用户"), ("opentker", "有数了用户")], string="用户类型", default="odoo") salt = fields.Char(string="盐加密") label_ids = fields.Many2many("tx.data.dict", string="兴趣标签") class ZxlUsers(models.Model): _name = "zxl.users" _description = "中信联用户" zxl_user_id = fields.Char(string="中信联用户ID") phone = fields.Char(string="手机号") email = fields.Char(string="邮箱") password = fields.Char(string="密码") ys_user_id = fields.Many2one("res.users", string="用户") remark = fields.Char(string="备注") class ZxlTodo(models.Model): _name = "zxl.todo" _description = "中信诊断活动表" user_id = fields.Char(string="用户") company_id = fields.Char(string="企业") todo_id = fields.Char(string="待办唯一标识") assess_name = fields.Char(string="活动名称") paper_title = fields.Char(string="问卷名称") status = fields.Char(string="填报状态") paper_href = fields.Char(string="填报地址") remark = fields.Char(string="备注") class ZxlEnterprise(models.Model): _name = "zxl.enterprise" _description = "中信联企业表" user_id = fields.Char(string="用户") enterprise_id = fields.Char(string="企业ID") enterprise_name = fields.Char(string="企业名称") enterprise_en_Name = fields.Char(string="企业英文名称") taxpayer_id = fields.Char(string="统一社会信用代码") is_certified = fields.Integer(string="企业是否已认证") company_type_name = fields.Char(string="企业性质") level_name = fields.Char(string="企业级别") assac_Name = fields.Char(string="所属国资委") one_name = fields.Char(string="一级单位名称") two_name = fields.Char(string="二级单位名称") three_name = fields.Char(string="三级单位名称") four_name = fields.Char(string="四级单位名称") five_name = fields.Char(string="五级单位名称") company_name = fields.Char(string="企业名称") company_nature_name = fields.Char(string="企业类型名称") legal_body = fields.Char(string="法定代表人") register_address_province = fields.Char(string="注册地址-省") register_address_city = fields.Char(string="注册地址-市") register_address_district = fields.Char(string="注册地址-县/区") register_address_street = fields.Char(string="注册地址-街道") register_address = fields.Char(string="注册地址-详细") address_province = fields.Char(string="通讯地址-省") address_city = fields.Char(string="通讯地址-市") address_district = fields.Char(string="通讯地址-区") address_street = fields.Char(string="通讯地址-街道") address = fields.Char(string="通讯地址-详细") url = fields.Char(string="组织官网") ind1 = fields.Char(string="所属行业1") ind2 = fields.Char(string="所属行业2") ind3 = fields.Char(string="所属行业3") ind4 = fields.Char(string="所属行业4") contact_name = fields.Char(string="联系人") contact_email = fields.Char(string="联系人邮箱") mobile = fields.Char(string="联系人手机") enterprise_type = fields.Char(string="企业登记注册类型") is_group_enterprise = fields.Char(string="是否总部型企业") gx_country_org = fields.Char(string="所属央企集团") local_sasac = fields.Char(string="所属地方国资委") enterprise_feature = fields.Char(string="企业特色") operating_income = fields.Char(string="营业收入") practitioners = fields.Char(string="从业人员") total_assets = fields.Char(string="资产总额") org_scope = fields.Char(string="组织规模") industry_organization = fields.Char(string="所属行业组织") sfjgqy = fields.Char(string="是否军工/保密单位") main_business = fields.Char(string="主营业务") company_profile = fields.Char(string="企业简介") source = fields.Char(string="请求数据源") parent_org = fields.Char(string="所属集团") affiliated_park = fields.Char(string="所属园区") remark = fields.Char(string="备注") class ZxlDiagnosisResult(models.Model): _name = "zxl.diagnosis.result" _description = "中信诊断结果表" user_id = fields.Char(string="用户") company_id = fields.Char(string="企业") todo_id = fields.Char(string="待办唯一标识") score = fields.Char(string="诊断总分") stage_dict_name = fields.Char(string="诊断阶段") finish_time = fields.Char(string="完成时间") remark = fields.Char(string="备注") class ZxlDiagnosisResultChildren(models.Model): _name = "zxl.diagnosis.result.children" _description = "中信诊断结果一级指标表" result_id = fields.Many2one("zxl.diagnosis.result", string="一级指标名称") index_name = fields.Char(string="一级指标名称") score = fields.Char(string="一级指标分数") stage_dict_name = fields.Char(string="一级阶段") remark = fields.Text(string="备注") class ZxlDiagnosisReport(models.Model): _name = "zxl.diagnosis.report" _description = "中信联诊断报告表" user_id = fields.Char(string="用户") company_id = fields.Char(string="企业") todo_id = fields.Char(string="待办唯一标识") report_url = fields.Char(string="报告pdf地址") down_url = fields.Char(string="下载地址") remark = fields.Text(string="备注") class ZxlAnswerRecord(models.Model): _name = "zxl.answer.record" _description = "中信联企业答题记录表" user_id = fields.Char(string="用户") company_id = fields.Char(string="企业") todo_id = fields.Char(string="待办唯一标识") paper_id = fields.Char(string="问卷ID") answer = fields.Text(string="答案") remark = fields.Text(string="备注")