已归档的表面工艺可选参数不进行产品创建

This commit is contained in:
liaodanlong
2025-05-12 10:24:22 +08:00
parent b5339046b9
commit d47a30977c

View File

@@ -24,6 +24,8 @@ class SfProductionProcessParameter(models.Model):
obj = super(SfProductionProcessParameter, self).create(vals)
return obj
def create_service_product(self):
if not self.active:
return
service_categ = self.env.ref(
'sf_dlm.product_category_surface_technics_sf').sudo()