处理CNC文件下发失败的bug

This commit is contained in:
qihao.gong@jikimo.com
2024-01-10 15:48:03 +08:00
parent cac7815369
commit e6866552bc
4 changed files with 22 additions and 14 deletions

View File

@@ -195,15 +195,15 @@ class SfMaintenanceEquipment(models.Model):
machine_tool_id = fields.Many2one('sf.machine_tool', '机床')
sf_maintenance_logs_ids = fields.One2many('sf.maintenance.logs', 'maintenance_equipment_id', '设备故障日志')
def name_get(self):
result = []
for parameter in self:
if parameter.code:
name = parameter.name + '-' + parameter.code
else:
name = parameter.name
result.append((parameter.id, name))
return result
# def name_get(self):
# result = []
# for parameter in self:
# if parameter.code:
# name = parameter.name + '-' + parameter.code
# else:
# name = parameter.name
# result.append((parameter.id, name))
# return result
@api.model
def create(self, vals):