优化产品页面

This commit is contained in:
jinling.yang
2024-03-13 17:34:35 +08:00
parent 0c44bba5f2
commit 5e0b4aa509
7 changed files with 131 additions and 36 deletions

View File

@@ -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(

View File

@@ -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)')