优化表面工艺

This commit is contained in:
jinling.yang
2024-08-07 17:30:29 +08:00
parent 5393ef686a
commit 1547a6064f
6 changed files with 106 additions and 57 deletions

View File

@@ -25,7 +25,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'方法)
res = super(StatusChange, self).action_confirm()