优化表面工yi

This commit is contained in:
jinling.yang
2024-07-26 15:49:25 +08:00
parent 19c4b99bae
commit 36a2bcca6e
5 changed files with 74 additions and 14 deletions

View File

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