新增上传模型功能
This commit is contained in:
@@ -312,7 +312,8 @@ class MachineToolType(models.Model):
|
||||
machine_tool_type_ids = []
|
||||
for item in machine_tool_type_code:
|
||||
machine_tool_type = self.search([('code', '=', item)])
|
||||
machine_tool_type_ids.append(machine_tool_type.id)
|
||||
if machine_tool_type:
|
||||
machine_tool_type_ids.append(machine_tool_type.id)
|
||||
return [(6, 0, machine_tool_type_ids)]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user