对产品的整体式刀具能力参数进行补充,对参数字段进行优化;对刀具物料查询的字段类型进行调整。
This commit is contained in:
@@ -83,77 +83,22 @@
|
|||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//page[last()-1]" position="after">
|
<xpath expr="//page[last()-1]" position="after">
|
||||||
<page string="刀具物料参数" attrs="{'invisible': [('categ_type', '!=', '刀具')]}">
|
<page string="刀具物料参数" attrs="{'invisible': [('categ_type', '!=', '刀具')]}">
|
||||||
<!--整体式刀具-->
|
|
||||||
<group attrs="{'invisible': [('cutting_tool_type','!=','整体式刀具')]}">
|
|
||||||
<group>
|
|
||||||
<field name="brand_id" options="{'no_create': True}"
|
|
||||||
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
||||||
<field name="materials_type_id" options="{'no_create': True}"
|
|
||||||
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
||||||
<field name="cutting_tool_type_id" options="{'no_create': True}"
|
|
||||||
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
||||||
<field name="integral_code" invisible="True"/>
|
|
||||||
<field name="integral_total_length" string="总长度(mm)"/>
|
|
||||||
<field name="integral_shank_length" string="柄部长度(mm)"/>
|
|
||||||
<field name="integral_blade_length" string="刃部长度(mm)"/>
|
|
||||||
<field name="integral_neck_length" string="颈部长度(mm)"/>
|
|
||||||
<field name="integral_blade_tip_taper" string="刀尖锥度(°)"/>
|
|
||||||
<field name="integral_blade_helix_angle" string="刃部螺旋角(°)"/>
|
|
||||||
<field name="integral_blade_type" string="刃部类型"/>
|
|
||||||
</group>
|
|
||||||
<group>
|
|
||||||
<field name="integral_blade_number" string="刃数(个)"/>
|
|
||||||
<field name="integral_shank_diameter" string="柄部直径(mm)"/>
|
|
||||||
<field name="integral_blade_diameter" string="刃部直径(mm)"/>
|
|
||||||
<field name="integral_neck_diameter" string="颈部直径(mm)"/>
|
|
||||||
<field name="integral_blade_tip_diameter" string="刀尖直径(mm)"/>
|
|
||||||
<field name="integral_hardness" string="刀具硬度(HRC)"/>
|
|
||||||
<field name="integral_coarse_medium_fine" string="粗/中/精" attrs="{'required': [('cutting_tool_type','=','整体式刀具')]}"/>
|
|
||||||
<field name="integral_coating_material" string="涂层材质"/>
|
|
||||||
<field name="integral_blade_material" string="刀具材质" attrs="{'required': [('cutting_tool_type','=','整体式刀具')]}"/>
|
|
||||||
<label for="integral_run_out_accuracy_min" string="端跳精度:"/>
|
|
||||||
<div class="test_model">
|
|
||||||
<label for="integral_run_out_accuracy_min" string="最小(min)"/>
|
|
||||||
<field name="integral_run_out_accuracy_min" class="o_address_zip" required="1"
|
|
||||||
options="{'format': false}" attrs="{'required': [('cutting_tool_type','=','整体式刀具')]}"/>
|
|
||||||
<span>(mm)&nbsp;</span>
|
|
||||||
<label for="integral_run_out_accuracy_max" string="最大(max)"/>
|
|
||||||
<field name="integral_run_out_accuracy_max" class="o_address_zip" required="1"
|
|
||||||
options="{'format': false}" attrs="{'required': [('cutting_tool_type','=','整体式刀具')]}"/>
|
|
||||||
<span>(mm)&nbsp;</span>
|
|
||||||
</div>
|
|
||||||
</group>
|
|
||||||
</group>
|
|
||||||
<group string="适合加工方式(多选)" attrs="{'invisible': [('cutting_tool_type','!=','整体式刀具')]}">
|
|
||||||
<field name="suitable_machining_method_ids" string=""/>
|
|
||||||
</group>
|
|
||||||
<group string="刀尖特征(单选)" attrs="{'invisible': [('cutting_tool_type','!=','整体式刀具')]}">
|
|
||||||
<field name="blade_tip_characteristics_ids" string=""/>
|
|
||||||
</group>
|
|
||||||
<group string="柄部类型(单选)" attrs="{'invisible': [('cutting_tool_type','!=','整体式刀具')]}">
|
|
||||||
<field name="handle_type_ids" string=""/>
|
|
||||||
</group>
|
|
||||||
<group string="走刀方向(多选)" attrs="{'invisible': [('cutting_tool_type','!=','整体式刀具')]}">
|
|
||||||
<field name="cutting_direction_ids" string=""/>
|
|
||||||
</group>
|
|
||||||
<group string="适合冷却液(多选)" attrs="{'invisible': [('cutting_tool_type','!=','整体式刀具')]}">
|
|
||||||
<field name="suitable_coolant_ids" string=""/>
|
|
||||||
</group>
|
|
||||||
|
|
||||||
<group>
|
<group>
|
||||||
<group attrs="{'invisible': [('categ_type', '!=', '刀具')]}">
|
<group attrs="{'invisible': [('categ_type', '!=', '刀具')]}" col="1">
|
||||||
<field name="brand_id" options="{'no_create': True}"
|
<field name="brand_id" options="{'no_create': True}"/>
|
||||||
attrs="{'invisible': [('cutting_tool_type', '=', '整体式刀具')]}"/>
|
<field name="cutting_tool_type_id" options="{'no_create': True}"/>
|
||||||
<field name="materials_type_id" options="{'no_create': True}"
|
<field name="materials_type_id" options="{'no_create': True}"/>
|
||||||
attrs="{'invisible': [('cutting_tool_type', '=', '整体式刀具')]}"/>
|
|
||||||
<field name="cutting_tool_type_id" options="{'no_create': True}"
|
|
||||||
attrs="{'invisible': [('cutting_tool_type', '=', '整体式刀具')]}"/>
|
|
||||||
<field name="cutting_tool_total_length"
|
<field name="cutting_tool_total_length"
|
||||||
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀柄'))]}"/>
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀柄'))]}"/>
|
||||||
<!-- <field name="cutting_tool_shank_length"-->
|
<field name="cutting_tool_shank_length"
|
||||||
<!-- attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>-->
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
<!-- <field name="cutting_tool_blade_length"-->
|
<field name="cutting_tool_blade_length"
|
||||||
<!-- attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>-->
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
|
<field name="integral_neck_length" string="颈部长度(mm)"
|
||||||
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
|
<field name="integral_blade_type" string="刃部类型"
|
||||||
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
|
|
||||||
<!--刀片-->
|
<!--刀片-->
|
||||||
<label for="tool_length" string="尺寸(mm)"
|
<label for="tool_length" string="尺寸(mm)"
|
||||||
attrs='{"invisible": [("cutting_tool_type","not in",("刀片","刀杆","刀盘"))]}'/>
|
attrs='{"invisible": [("cutting_tool_type","not in",("刀片","刀杆","刀盘"))]}'/>
|
||||||
@@ -174,7 +119,7 @@
|
|||||||
<field name="cutting_tool_blade_diameter"
|
<field name="cutting_tool_blade_diameter"
|
||||||
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
||||||
<field name="cutting_tool_blade_number"
|
<field name="cutting_tool_blade_number"
|
||||||
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片','刀杆','刀盘'))]}"/>
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片','刀杆','刀盘'))]}"/>
|
||||||
<field name="cutting_tool_diameter_max"
|
<field name="cutting_tool_diameter_max"
|
||||||
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
||||||
<field name="cutting_tool_flange_length"
|
<field name="cutting_tool_flange_length"
|
||||||
@@ -208,6 +153,24 @@
|
|||||||
attrs="{'invisible': [('cutting_tool_type', 'not in', ('夹头'))]}"/>
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('夹头'))]}"/>
|
||||||
</group>
|
</group>
|
||||||
<group attrs="{'invisible': [('categ_type', '!=', '刀具')]}">
|
<group attrs="{'invisible': [('categ_type', '!=', '刀具')]}">
|
||||||
|
<!--整体式刀具-->
|
||||||
|
<field name="integral_hardness" string="刀具硬度(HRC)"
|
||||||
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
|
<field name="integral_coarse_medium_fine" string="粗/中/精"
|
||||||
|
attrs="{'required': [('cutting_tool_type','=','整体式刀具')],'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
|
<field name="integral_shank_diameter" string="柄部直径(mm)"
|
||||||
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
|
<field name="integral_blade_diameter" string="刃部直径(mm)"
|
||||||
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
|
<field name="integral_neck_diameter" string="颈部直径(mm)"
|
||||||
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
|
<field name="integral_blade_tip_diameter" string="刀尖直径(mm)"
|
||||||
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
|
<field name="integral_blade_helix_angle" string="刃部螺旋角(°)"
|
||||||
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
|
<field name="integral_blade_tip_taper" string="刀尖锥度(°)"
|
||||||
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
||||||
|
|
||||||
<field name="cutting_tool_jump_accuracy"
|
<field name="cutting_tool_jump_accuracy"
|
||||||
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
||||||
<field name="cutting_tool_front_angle"
|
<field name="cutting_tool_front_angle"
|
||||||
@@ -219,7 +182,7 @@
|
|||||||
<field name="cutting_tool_main_included_angle"
|
<field name="cutting_tool_main_included_angle"
|
||||||
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片'))]}"/>
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片'))]}"/>
|
||||||
<field name="coating_material"
|
<field name="coating_material"
|
||||||
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片'))]}"/>
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片'))]}"/>
|
||||||
<field name="cutting_tool_accuracy_level"
|
<field name="cutting_tool_accuracy_level"
|
||||||
attrs="{'invisible': [('cutting_tool_type', 'in', ('刀柄', '整体式刀具'))]}"/>
|
attrs="{'invisible': [('cutting_tool_type', 'in', ('刀柄', '整体式刀具'))]}"/>
|
||||||
<field name="cutting_tool_working_hardness" attrs="{'invisible': [('cutting_tool_type', '=', '整体式刀具')]}"/>
|
<field name="cutting_tool_working_hardness" attrs="{'invisible': [('cutting_tool_type', '=', '整体式刀具')]}"/>
|
||||||
@@ -231,6 +194,38 @@
|
|||||||
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片'))]}"/>
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片'))]}"/>
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
|
<group col="1" attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}">
|
||||||
|
<group>
|
||||||
|
<group>
|
||||||
|
<label for="integral_run_out_accuracy_min" string="端跳精度:"/>
|
||||||
|
<div class="test_model">
|
||||||
|
<label for="integral_run_out_accuracy_min" string="最小(min)"/>
|
||||||
|
<field name="integral_run_out_accuracy_min" class="o_address_zip" required="1"
|
||||||
|
options="{'format': false}" attrs="{'required': [('cutting_tool_type','=','整体式刀具')]}"/>
|
||||||
|
<span>(mm)&nbsp;</span>
|
||||||
|
<label for="integral_run_out_accuracy_max" string="最大(max)"/>
|
||||||
|
<field name="integral_run_out_accuracy_max" class="o_address_zip" required="1"
|
||||||
|
options="{'format': false}" attrs="{'required': [('cutting_tool_type','=','整体式刀具')]}"/>
|
||||||
|
<span>(mm)&nbsp;</span>
|
||||||
|
</div>
|
||||||
|
</group>
|
||||||
|
</group>
|
||||||
|
<group string="适合加工方式">
|
||||||
|
<field name="suitable_machining_method_ids" string=""/>
|
||||||
|
</group>
|
||||||
|
<group string="刀尖特征">
|
||||||
|
<field name="blade_tip_characteristics_ids" string=""/>
|
||||||
|
</group>
|
||||||
|
<group string="柄部类型">
|
||||||
|
<field name="handle_type_ids" string=""/>
|
||||||
|
</group>
|
||||||
|
<group string="走刀方向">
|
||||||
|
<field name="cutting_direction_ids" string=""/>
|
||||||
|
</group>
|
||||||
|
<group string="适合冷却液">
|
||||||
|
<field name="suitable_coolant_ids" string=""/>
|
||||||
|
</group>
|
||||||
|
</group>
|
||||||
</page>
|
</page>
|
||||||
<page string="夹具物料参数" attrs="{'invisible': [('categ_type', '!=', '夹具')]}">
|
<page string="夹具物料参数" attrs="{'invisible': [('categ_type', '!=', '夹具')]}">
|
||||||
<group attrs='{"invisible": [("fixture_material_type","not in",("气动夹具","转接板(锁板)夹具","磁吸夹具","虎钳夹具","零点卡盘"))]}'>
|
<group attrs='{"invisible": [("fixture_material_type","not in",("气动夹具","转接板(锁板)夹具","磁吸夹具","虎钳夹具","零点卡盘"))]}'>
|
||||||
|
|||||||
@@ -74,12 +74,108 @@ class ResProductMo(models.Model):
|
|||||||
tool_weight = fields.Float('重量(kg)')
|
tool_weight = fields.Float('重量(kg)')
|
||||||
|
|
||||||
coating_material = fields.Char('涂层材质')
|
coating_material = fields.Char('涂层材质')
|
||||||
# 整体式刀具参数
|
# 整体式刀具特有字段
|
||||||
cutting_tool_total_length = fields.Float('总长度(mm)')
|
cutting_tool_total_length = fields.Float('总长度(mm)', digits=(6, 1))
|
||||||
cutting_tool_shank_length = fields.Float('柄部长度(mm)')
|
cutting_tool_shank_length = fields.Float('柄部长度(mm)', digits=(6, 1))
|
||||||
cutting_tool_blade_length = fields.Float('刃部长度(mm)')
|
cutting_tool_blade_length = fields.Float('刃部长度(mm)', digits=(6, 1))
|
||||||
|
cutting_tool_blade_number = fields.Integer('刃数(个)')
|
||||||
|
# 整体式刀具新增字段
|
||||||
|
integral_code = fields.Char('整体式刀具编码', readonly=True)
|
||||||
|
integral_neck_length = fields.Float('整体式刀具颈部长度(mm)', digits=(6, 1))
|
||||||
|
integral_shank_diameter = fields.Float('整体式刀具柄部直径(mm)', digits=(6, 1))
|
||||||
|
integral_blade_diameter = fields.Float('整体式刀具刃部直径(mm)', digits=(6, 1))
|
||||||
|
integral_neck_diameter = fields.Float('整体式刀具颈部直径(mm)', digits=(6, 1))
|
||||||
|
integral_blade_tip_diameter = fields.Float('整体式刀具刀尖直径(mm)', digits=(6, 1))
|
||||||
|
integral_blade_tip_taper = fields.Float('整体式刀具刀尖锥度(°)', digits=(6, 1))
|
||||||
|
integral_blade_helix_angle = fields.Float('整体式刀具刃部螺旋角(°)', digits=(6, 1))
|
||||||
|
integral_blade_type = fields.Char('整体式刀具刃部类型')
|
||||||
|
integral_coarse_medium_fine = fields.Selection([('粗', '粗'), ('中', '中'), ('精', '精')], '整体式刀具粗/中/精')
|
||||||
|
integral_hardness = fields.Integer('整体式刀具硬度(HRC)')
|
||||||
|
integral_run_out_accuracy_max = fields.Float('整体式刀具端跳精度max', digits=(6, 1))
|
||||||
|
integral_run_out_accuracy_min = fields.Float('整体式刀具端跳精度min', digits=(6, 1))
|
||||||
|
suitable_machining_method_ids = fields.Many2many('sf.suitable.machining.method',
|
||||||
|
'rel_suitable_machining_method_product_template', '适合加工方式')
|
||||||
|
blade_tip_characteristics_ids = fields.Many2many('sf.blade.tip.characteristics',
|
||||||
|
'rel_blade_tip_characteristics_product_template', '刀尖特征')
|
||||||
|
handle_type_ids = fields.Many2many('sf.handle.type', 'rel_handle_type_product_template', '柄部类型')
|
||||||
|
cutting_direction_ids = fields.Many2many('sf.cutting.direction', 'rel_cutting_direction_product_template', '走刀方向')
|
||||||
|
suitable_coolant_ids = fields.Many2many('sf.suitable.coolant', 'rel_suitable_coolant_product_template', '适合冷却液')
|
||||||
|
|
||||||
|
@api.constrains('suitable_machining_method_ids')
|
||||||
|
def _check_suitable_machining_method_ids(self):
|
||||||
|
for record in self:
|
||||||
|
if len(record.suitable_machining_method_ids) == 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("适合加工方式不能为空!")
|
||||||
|
|
||||||
|
@api.constrains('blade_tip_characteristics_ids')
|
||||||
|
def _check_blade_tip_characteristics_ids(self):
|
||||||
|
for record in self:
|
||||||
|
if len(record.blade_tip_characteristics_ids) == 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("刀尖特征不能为空!")
|
||||||
|
if len(record.blade_tip_characteristics_ids) > 1 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("刀尖特征只能单选!")
|
||||||
|
|
||||||
|
@api.constrains('handle_type_ids')
|
||||||
|
def _check_handle_type_ids(self):
|
||||||
|
for record in self:
|
||||||
|
if len(record.handle_type_ids) == 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("柄部类型不能为空!")
|
||||||
|
if len(record.handle_type_ids) > 1 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("柄部类型只能单选!")
|
||||||
|
|
||||||
|
@api.constrains('cutting_direction_ids')
|
||||||
|
def _check_cutting_direction_ids(self):
|
||||||
|
for record in self:
|
||||||
|
if len(record.cutting_direction_ids) == 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("走刀方向不能为空!")
|
||||||
|
|
||||||
|
@api.constrains('suitable_coolant_ids')
|
||||||
|
def _check_suitable_coolant_ids(self):
|
||||||
|
for record in self:
|
||||||
|
if not record.suitable_coolant_ids and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("适合冷却液不能为空!")
|
||||||
|
|
||||||
|
@api.constrains('integral_total_length')
|
||||||
|
def _check_integral_total_length(self):
|
||||||
|
if self.cutting_tool_total_length <= 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("总长度不能为0")
|
||||||
|
|
||||||
|
@api.constrains('integral_shank_length')
|
||||||
|
def _check_integral_shank_length(self):
|
||||||
|
if self.cutting_tool_shank_length <= 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("柄部长度不能为0")
|
||||||
|
|
||||||
|
@api.constrains('integral_blade_length')
|
||||||
|
def _check_integral_blade_length(self):
|
||||||
|
if self.cutting_tool_blade_length <= 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("刃部长度不能为0")
|
||||||
|
|
||||||
|
@api.constrains('integral_blade_number')
|
||||||
|
def _check_integral_blade_number(self):
|
||||||
|
if self.cutting_tool_blade_number <= 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("刃数不能为0")
|
||||||
|
|
||||||
|
@api.constrains('integral_shank_diameter')
|
||||||
|
def _check_integral_shank_diameter(self):
|
||||||
|
if self.integral_shank_diameter <= 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("柄部直径不能为0")
|
||||||
|
|
||||||
|
@api.constrains('integral_blade_diameter')
|
||||||
|
def _check_integral_blade_diameter(self):
|
||||||
|
if self.integral_blade_diameter <= 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("刃部直径不能为0")
|
||||||
|
|
||||||
|
@api.constrains('integral_run_out_accuracy_min')
|
||||||
|
def _check_integral_blade_diameter(self):
|
||||||
|
if self.integral_run_out_accuracy_min <= 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("端跳精度最小(min)不能为0")
|
||||||
|
|
||||||
|
@api.constrains('integral_run_out_accuracy_max')
|
||||||
|
def _check_integral_run_out_accuracy_max(self):
|
||||||
|
if self.integral_run_out_accuracy_max <= 0 and self.cutting_tool_type == '整体式刀具':
|
||||||
|
raise ValidationError("端跳精度最大(max)不能为0")
|
||||||
|
|
||||||
cutting_tool_diameter = fields.Float('直径(mm)')
|
cutting_tool_diameter = fields.Float('直径(mm)')
|
||||||
cutting_tool_blade_number = fields.Integer('刃数')
|
|
||||||
cutting_tool_front_angle = fields.Float('前角(°)')
|
cutting_tool_front_angle = fields.Float('前角(°)')
|
||||||
cutting_tool_rear_angle = fields.Float('后角(°)')
|
cutting_tool_rear_angle = fields.Float('后角(°)')
|
||||||
cutting_tool_main_included_angle = fields.Float('主偏角(°)')
|
cutting_tool_main_included_angle = fields.Float('主偏角(°)')
|
||||||
|
|||||||
@@ -86,9 +86,9 @@ class SfToolMaterialSearch(models.Model):
|
|||||||
integral_blade_tip_diameter = fields.Float('整体式刀具刀尖直径(mm)', digits=(6, 1))
|
integral_blade_tip_diameter = fields.Float('整体式刀具刀尖直径(mm)', digits=(6, 1))
|
||||||
integral_blade_tip_taper = fields.Float('整体式刀具刀尖锥度(°)', digits=(6, 1))
|
integral_blade_tip_taper = fields.Float('整体式刀具刀尖锥度(°)', digits=(6, 1))
|
||||||
integral_blade_helix_angle = fields.Float('整体式刀具刃部螺旋角(°)', digits=(6, 1))
|
integral_blade_helix_angle = fields.Float('整体式刀具刃部螺旋角(°)', digits=(6, 1))
|
||||||
integral_blade_type = fields.Selection([('直刃', '直刃'), ('带断屑槽', '带断屑槽')], '整体式刀具刃部类型')
|
integral_blade_type = fields.Char('整体式刀具刃部类型')
|
||||||
integral_coarse_medium_fine = fields.Selection([('粗', '粗'), ('中', '中'), ('精', '精')], '整体式刀具粗/中/精')
|
integral_coarse_medium_fine = fields.Selection([('粗', '粗'), ('中', '中'), ('精', '精')], '整体式刀具粗/中/精')
|
||||||
integral_blade_material = fields.Selection([('碳素钢', '碳素钢'), ('硬质合金', '硬质合金')], '整体式刀具刀具材质')
|
# integral_blade_material = fields.Selection([('碳素钢', '碳素钢'), ('硬质合金', '硬质合金')], '整体式刀具刀具材质')
|
||||||
integral_hardness = fields.Integer('整体式刀具硬度(HRC)')
|
integral_hardness = fields.Integer('整体式刀具硬度(HRC)')
|
||||||
integral_coating_material = fields.Char('整体式刀具涂层材质')
|
integral_coating_material = fields.Char('整体式刀具涂层材质')
|
||||||
integral_run_out_accuracy_max = fields.Float('整体式刀具端跳精度max', digits=(6,1))
|
integral_run_out_accuracy_max = fields.Float('整体式刀具端跳精度max', digits=(6,1))
|
||||||
|
|||||||
@@ -139,7 +139,7 @@
|
|||||||
<field name="mrs_cutting_tool_material_id"/>
|
<field name="mrs_cutting_tool_material_id"/>
|
||||||
<field name="mrs_cutting_tool_type_id"/>
|
<field name="mrs_cutting_tool_type_id"/>
|
||||||
<field name="mrs_machine_brand_id"/>
|
<field name="mrs_machine_brand_id"/>
|
||||||
<field name="mrs_materials_model_id"/>
|
<!-- <field name="mrs_materials_model_id" attrs="{'invisible':[('cutting_tool_type','=','整体式刀具')]}"/>-->
|
||||||
<!-- <field name="mrs_cutting_tool_model_id"/> -->
|
<!-- <field name="mrs_cutting_tool_model_id"/> -->
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
@@ -200,7 +200,7 @@
|
|||||||
<field name="integral_blade_tip_taper" string="刀尖锥度(°)"/>
|
<field name="integral_blade_tip_taper" string="刀尖锥度(°)"/>
|
||||||
<field name="integral_blade_helix_angle" string="刃部螺旋角(°)"/>
|
<field name="integral_blade_helix_angle" string="刃部螺旋角(°)"/>
|
||||||
<field name="integral_blade_type" string="刃部类型"/>
|
<field name="integral_blade_type" string="刃部类型"/>
|
||||||
<field name="integral_blade_material" string="刀具材质" attrs="{'required': [('cutting_tool_type','=','整体式刀具')]}"/>
|
<field name="mrs_materials_model_id" string="刀具材质" attrs="{'required': [('cutting_tool_type','=','整体式刀具')]}"/>
|
||||||
<label for="integral_run_out_accuracy_min" string="端跳精度:"/>
|
<label for="integral_run_out_accuracy_min" string="端跳精度:"/>
|
||||||
<div class="test_model">
|
<div class="test_model">
|
||||||
<label for="integral_run_out_accuracy_min" string="最小(min)"/>
|
<label for="integral_run_out_accuracy_min" string="最小(min)"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user