sf 材料型号页面修改字段信息

This commit is contained in:
liaodanlong
2025-03-06 10:25:56 +08:00
parent 4c8cf5caf8
commit 9c5ecdfe76
3 changed files with 22 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# Part of SmartGo. See LICENSE file for full copyright and licensing details.
import logging
import traceback
import requests
@@ -90,7 +91,8 @@ class ResConfigSettings(models.TransientModel):
_logger.info("同步坯料冗余完成")
except Exception as e:
_logger.info("sf_all_sync error: %s" % e)
traceback_error = traceback.format_exc()
_logger.error("sf_all_sync error:%s" % traceback_error)
raise ValidationError("数据错误导致同步失败,请联系管理员")
@api.model