From d73ffab9b5a74f18684e475003f09bd4475fbd85 Mon Sep 17 00:00:00 2001 From: yuxianghui <3437689193@qq.com> Date: Fri, 20 Jun 2025 10:28:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86bfm=E4=B8=8B=E5=8D=95?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/product_template.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sf_manufacturing/models/product_template.py b/sf_manufacturing/models/product_template.py index 30d807d1..4062814e 100644 --- a/sf_manufacturing/models/product_template.py +++ b/sf_manufacturing/models/product_template.py @@ -904,9 +904,9 @@ class ResProductMo(models.Model): 'model_long': item.get('blank_length') if blank_bool else self.format_float(item['model_long'] + embryo_redundancy_id.long), 'model_width': item.get('blank_width') if blank_bool else self.format_float(item['model_width'] + embryo_redundancy_id.width), 'model_height': item.get('blank_height') if blank_bool else self.format_float(item['model_height'] + embryo_redundancy_id.height), - 'model_volume': self.format_float(((item['model_long'] + model_type.embryo_tolerance) * - (item['model_width'] + model_type.embryo_tolerance) * - (item['model_height'] + model_type.embryo_tolerance))) if not blank_bool else ( + 'model_volume': self.format_float(((item['model_long'] + embryo_redundancy_id.long) * + (item['model_width'] + embryo_redundancy_id.width) * + (item['model_height'] + embryo_redundancy_id.height))) if not blank_bool else ( item.get('blank_length') * item.get('blank_width') * item.get('blank_height')), 'product_model_type_id': model_type.id, 'model_processing_panel': item['processing_panel_detail'],