19 lines
600 B
Python
19 lines
600 B
Python
# -*- coding:utf-8 -*-
|
|
|
|
from odoo import api, fields, models, _
|
|
|
|
|
|
class YuthonInspectionItems(models.Model):
|
|
_name = 'yuthon.inspection.items'
|
|
_description = "巡检题项"
|
|
|
|
name = fields.Char(string="标题")
|
|
items_type = fields.Selection([('fire', '消防'), ('hsien', '保洁')], string="巡检类型")
|
|
items_check = fields.Char(string="检查项")
|
|
items_line = fields.Char(string="检查明细")
|
|
items_outcome = fields.Char(string="结果选项")
|
|
user_id = fields.Many2one('res.users', string='创建人')
|
|
items_time = fields.Datetime(string='创建时间')
|
|
|
|
|