25 lines
914 B
Python
25 lines
914 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import fields, models, api
|
|
|
|
# 功能刀具预警
|
|
class FunctionalCuttingToolEntity(models.Model):
|
|
_name = 'sf.functional.cutting.tool.entity'
|
|
_inherit = 'sf.functional.cutting.tool'
|
|
_description = '功能刀具预警'
|
|
|
|
install_tool_time = fields.Char("装刀时间")
|
|
outbound_time = fields.Char('出库时间')
|
|
on_board_time = fields.Char('上机时间')
|
|
machine_tool_code = fields.Char('机台号')
|
|
cutting_tool_code = fields.Char('刀位号')
|
|
idle_time = fields.Char('闲置时长')
|
|
alarm_value = fields.Char('报警值')
|
|
used_value = fields.Char('已使用值')
|
|
alarm_type = fields.Char('报警类型')
|
|
alarm_time = fields.Char('报警时间')
|
|
dispose_user = fields.Char('处理人')
|
|
dispose_time = fields.Char('处理时间')
|
|
dispose_func = fields.Char('处理方法/措施')
|
|
remake = fields.Char('备注')
|
|
|