diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 2c499597..40239012 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -1299,7 +1299,7 @@ class MrpProduction(models.Model): 'user_id': production.user_id.id} return production_values_str - 增加制造订单类型 + # 增加制造订单类型 production_type = fields.Selection( [('自动化产线加工', '自动化产线加工'), ('人工线下加工', '人工线下加工')], string='制造类型', diff --git a/sf_manufacturing/models/product_template.py b/sf_manufacturing/models/product_template.py index f293ef64..022b4b2e 100644 --- a/sf_manufacturing/models/product_template.py +++ b/sf_manufacturing/models/product_template.py @@ -859,7 +859,7 @@ class ResProductMo(models.Model): item['model_width'] + model_type.embryo_tolerance) * ( item['model_height'] + model_type.embryo_tolerance), 'product_model_type_id': model_type.id, - # 'model_processing_panel': 'R', + 'model_processing_panel': item['processing_panel_detail'], 'model_machining_precision': item['model_machining_precision'], 'model_code': item['barcode'], 'length': item['model_long'],