17 lines
670 B
Python
17 lines
670 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from odoo import models, fields, api
|
|
|
|
|
|
class TxDiagnosticReport(models.Model):
|
|
_name = 'tx.diagnostic.report'
|
|
_inherit = ['mail.thread', 'mail.activity.mixin']
|
|
_description = '诊断报告'
|
|
|
|
name = fields.Char(string='名称', tracking=True)
|
|
company_name = fields.Char(string='公司名称', tracking=True)
|
|
report_file = fields.Binary(string="诊断报告", tracking=True)
|
|
report_file_name = fields.Char(string="报告文件名称", tracking=True)
|
|
score = fields.Char(string="得分", tracking=True)
|
|
stage = fields.Char(string="阶段", tracking=True)
|
|
explain = fields.Text(string="说明", tracking=True) |