Merge branch 'refs/heads/develop' into feature/tool_standard_library_process
# Conflicts: # sf_manufacturing/models/product_template.py
This commit is contained in:
@@ -173,7 +173,6 @@ class ResProductMo(models.Model):
|
||||
'压紧方式', domain=[('type', '=', '压紧方式')])
|
||||
|
||||
name = fields.Char('产品名称', compute='_compute_tool_name', store=True, required=False)
|
||||
|
||||
|
||||
@api.constrains('seller_ids')
|
||||
def _check_seller_ids(self):
|
||||
@@ -896,8 +895,9 @@ class ResProductMo(models.Model):
|
||||
'model_long': self.format_float(item['model_long'] + embryo_redundancy_id.long),
|
||||
'model_width': self.format_float(item['model_width'] + embryo_redundancy_id.width),
|
||||
'model_height': self.format_float(item['model_height'] + embryo_redundancy_id.height),
|
||||
'model_volume': self.format_float(item['blank_volume']),
|
||||
'model_area': self.format_float(item['blank_area']),
|
||||
'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)),
|
||||
'product_model_type_id': model_type.id,
|
||||
'model_processing_panel': item['processing_panel_detail'],
|
||||
'model_machining_precision': item['model_machining_precision'],
|
||||
@@ -1114,9 +1114,9 @@ class ResProductMo(models.Model):
|
||||
image_data = fileObj.read()
|
||||
base64_data = base64.b64encode(image_data)
|
||||
return base64_data
|
||||
|
||||
|
||||
# 增加产品表面积
|
||||
|
||||
|
||||
|
||||
|
||||
class ResProductFixture(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user