AGV增加运行日志
设备oee增加运行日志
This commit is contained in:
@@ -17,12 +17,30 @@ class SfMaintenanceEquipmentCategory(models.Model):
|
||||
equipment_type_code = fields.Char('简写')
|
||||
|
||||
|
||||
class SfMaintenanceEquipmentAGVLog(models.Model):
|
||||
_name = 'maintenance.equipment.agv.log'
|
||||
_description = 'AGV运行日志'
|
||||
|
||||
run_type = fields.Char('任务类型')
|
||||
run_code = fields.Char('任务指令代码')
|
||||
run_first = fields.Char('任务起点')
|
||||
production_line = fields.Char('目的生产线')
|
||||
run_last = fields.Char('任务终点')
|
||||
workorder = fields.Char('工件编码/任务单号')
|
||||
time = fields.Datetime('日期/事件')
|
||||
state = fields.Char('事件/状体')
|
||||
equipment_id = fields.Many2one('maintenance.equipment', '设备')
|
||||
|
||||
|
||||
class SfMaintenanceEquipment(models.Model):
|
||||
_inherit = 'maintenance.equipment'
|
||||
_description = '设备'
|
||||
|
||||
crea_url = "/api/machine_tool/create"
|
||||
|
||||
|
||||
#AGV运行日志
|
||||
agv_logs = fields.One2many('maintenance.equipment.agv.log', 'equipment_id', string='AGV运行日志')
|
||||
# 1212修改后的字段
|
||||
number_of_axles = fields.Selection(
|
||||
[("三轴", "三轴"), ("四轴", "四轴"), ("五轴", "五轴"), ("六轴", "六轴")],
|
||||
@@ -194,6 +212,7 @@ class SfMaintenanceEquipment(models.Model):
|
||||
# 多个型号对应一个机床
|
||||
machine_tool_id = fields.Many2one('sf.machine_tool', '机床')
|
||||
sf_maintenance_logs_ids = fields.One2many('sf.maintenance.logs', 'maintenance_equipment_id', '设备故障日志')
|
||||
equipment_oee_ids = fields.One2many('maintenance.equipment.oee', 'equipment_id', '设备OEE')
|
||||
|
||||
# def name_get(self):
|
||||
# result = []
|
||||
|
||||
Reference in New Issue
Block a user