优化提示

This commit is contained in:
jinling.yang
2024-08-29 17:30:16 +08:00
parent 6a7e6ee5c5
commit 6572ca25fe

View File

@@ -30,7 +30,7 @@ class StatusChange(models.Model):
if not server_product:
server_product_none.append(item.name)
if server_product_none:
raise UserError(_("请先至【产品】中创建【表面工艺参数】为%s的服务产品", ", ".join(server_product_none)))
raise UserError(_("请先至【产品】中创建【表面工艺参数】为%s的服务产品", ", ".join(server_product_none)))
# 使用super()来调用原始方法(在本例中为'sale.order'模型的'action_confirm'方法)
try: