Accept Merge Request #2222: (feature/平台下单接口优化 -> develop)
Merge Request: 处理bfm下单报错 Created By: @禹翔辉 Reviewed By: @胡尧 Approved By: @胡尧 Accepted By: @禹翔辉 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/2222
This commit is contained in:
@@ -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_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_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_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) *
|
'model_volume': self.format_float(((item['model_long'] + embryo_redundancy_id.long) *
|
||||||
(item['model_width'] + model_type.embryo_tolerance) *
|
(item['model_width'] + embryo_redundancy_id.width) *
|
||||||
(item['model_height'] + model_type.embryo_tolerance))) if not blank_bool else (
|
(item['model_height'] + embryo_redundancy_id.height))) if not blank_bool else (
|
||||||
item.get('blank_length') * item.get('blank_width') * item.get('blank_height')),
|
item.get('blank_length') * item.get('blank_width') * item.get('blank_height')),
|
||||||
'product_model_type_id': model_type.id,
|
'product_model_type_id': model_type.id,
|
||||||
'model_processing_panel': item['processing_panel_detail'],
|
'model_processing_panel': item['processing_panel_detail'],
|
||||||
|
|||||||
Reference in New Issue
Block a user