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'],