优化产品页面
This commit is contained in:
@@ -126,7 +126,7 @@ class CuttingToolModel(models.Model):
|
||||
else:
|
||||
m = int(today_code[-3:]) + 1
|
||||
num = "%03d" % m
|
||||
return "%s%s" % (today_code, num)
|
||||
self.code = "%s%s" % (today_code, num)
|
||||
|
||||
# 适用夹头型号可以多选
|
||||
# chuck_ids = fields.Many2many(
|
||||
|
||||
@@ -31,6 +31,7 @@ class ToolMaterialsBasicParameters(models.Model):
|
||||
blade_depth = fields.Float('刃部深度(mm)')
|
||||
pitch = fields.Float('牙距(mm)')
|
||||
cutting_depth = fields.Float('切削深度(mm)')
|
||||
cutting_depth_max = fields.Float('最大切削深度(mm)')
|
||||
# 刀片参数
|
||||
length = fields.Float('长度(mm)')
|
||||
thickness = fields.Float('厚度(mm)')
|
||||
|
||||
Reference in New Issue
Block a user