完成计划权限,优化警告错误

This commit is contained in:
mgw
2023-11-29 20:58:12 +08:00
parent ca0b59e95b
commit 2cf4958f46
4 changed files with 89 additions and 13 deletions

View File

@@ -543,7 +543,7 @@ class WorkCenterBarcode(models.Model):
# 如果没有附件,直接返回
if not self.cnc_ids:
return
return None
# 处理第一个附件的文件名
first_attachment = self.cnc_ids[0].cnc_id