diff --git a/sf_manufacturing/models/product_template.py b/sf_manufacturing/models/product_template.py index d40da113..22effb7e 100644 --- a/sf_manufacturing/models/product_template.py +++ b/sf_manufacturing/models/product_template.py @@ -1121,7 +1121,7 @@ class ResProductMo(models.Model): def generate_product_name(self, order_id, item, i): """生成成品名称""" - product_name = '%s-%s-%s' % ('P', order_id.name, i), + product_name = '%s-%s-%s' % ('P', order_id.name, i) return product_name def generate_embryo_name(self, order_id, item, materials_id, materials_type_id, embryo_redundancy_id, i):