@@ -67,186 +67,220 @@ class BasicParametersFixture(models.Model):
mounting_hole_depth = fields . Float ( ' 安装孔深度(mm) ' , digits = ( 16 , 2 ) )
centering_diameter = fields . Float ( ' 定心直径(mm) ' , digits = ( 16 , 2 ) )
code = fields . Char ( ' 编码 ' )
active = fields . Boolean ( ' 有效 ' , default = True )
def _get_basic_parameters_list ( self , fixture_materials_data , fixture_materials_name ) :
if fixture_materials_name == ' 零点卡盘 ' :
return self . _json_zero_chuck_param ( fixture_materials_data )
elif fixture_materials_name == ' 零点托盘 ' :
return self . _json_zero_tray_param ( fixture_materials_data )
elif fixture_materials_name == ' 气动夹具 ' :
return self . _json_pneumatic_fixture_param ( fixture_materials_data )
elif fixture_materials_name == ' 虎钳夹具 ' :
return self . _json_jaw_vice_fixture_param ( fixture_materials_data )
elif fixture_materials_name == ' 磁吸夹具 ' :
return self . _json_magnet_fixture_param ( fixture_materials_data )
elif fixture_materials_name == ' 转接板(锁板)夹具 ' :
return self . _json_adapter_board_fixture_param ( fixture_materials_data )
elif fixture_materials_name == ' 三爪卡盘 ' :
return self . _json_scroll_chuck_param ( fixture_materials_data )
return { }
def _json_zero_chuck_param ( self , obj ) :
zero_chuck_param_str = ( 0 , ' ' , {
' nam e' : obj [ ' nam e' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' diameter ' : obj [ ' diameter ' ] ,
' weight ' : obj [ ' weight ' ] ,
' orientation_dish_diameter ' : obj [ ' orientation_dish_diameter ' ] ,
' clamping_ diameter' : obj [ ' clamping_ diameter' ] ,
' clamping_num ' : obj [ ' clamping_num ' ] ,
' chucking_power_max ' : obj [ ' chucking_power_max ' ] ,
' repeated_positioning_accuracy ' : obj [ ' repeated_positioning_accuracy ' ] ,
' boolean_transposing_hole ' : obj [ ' boolean_transposing_hole ' ] ,
' unlo cking_method ' : obj [ ' unlo cking_method ' ] ,
' boolean_chip_blowing_function ' : obj [ ' boolean_chip_blowing_function ' ] ,
' carrying_capacity_max ' : obj [ ' carrying_capacity_max ' ] ,
' rigidity ' : obj [ ' rigidity ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' machine_tool_type_id ' : self . env [ ' sf.machine_tool.type ' ] . sudo ( ) . search (
[ ( ' code ' , ' = ' , obj [ ' machine_tool_type_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
} )
return zero_chuck_param_str
""" 零点卡盘: 将data数据转换成list数据 """
return { ' cod e' : obj [ ' cod e' ] ,
' fixture_model_id ' : self . env [ ' sf.fixture.model ' ] . sudo ( ) . search (
[ ( ' code ' , ' = ' , obj . get ( ' fixture_model_code ' ) ) ] ) . id ,
' name ' : obj [ ' name ' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' diameter ' : obj [ ' diameter ' ] ,
' weight ' : obj [ ' weight ' ] ,
' orientation_dish_diameter ' : obj [ ' orientation_dish_diameter ' ] ,
' clamping_diameter ' : obj [ ' clamping_diameter ' ] ,
' clamping_num ' : obj [ ' clamping_num ' ] ,
' chu cking_power_max ' : obj [ ' chu cking_power_max ' ] ,
' repeated_positioning_accuracy ' : obj [ ' repeated_positioning_accuracy ' ] ,
' boolean_transposing_hole ' : obj [ ' boolean_transposing_hole ' ] ,
' unlocking_method ' : obj [ ' unlocking_method ' ] ,
' boolean_chip_blowing_function ' : obj [ ' boolean_chip_blowing_function ' ] ,
' carrying_capacity_max ' : obj [ ' carrying_capacity_max ' ] ,
' rigidity ' : obj [ ' rigidity ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' machine_tool_type_id ' : self . env [ ' sf.machine_tool.type ' ] . sudo ( ) . search (
[ ( ' code ' , ' = ' , obj [ ' machine_tool_type_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' active ' : obj [ ' active ' ] }
def _json_zero_tray_param ( self , obj ) :
zero_tray_param_str = ( 0 , ' ' , {
' nam e' : obj [ ' nam e' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' diameter ' : obj [ ' diameter ' ] ,
' weight ' : obj [ ' weight ' ] ,
' clamping_diameter ' : obj [ ' clamping_diameter ' ] ,
' connector_ diameter' : obj [ ' connector_ diameter' ] ,
' chucking_power_max ' : obj [ ' chucking_power_max ' ] ,
' repeated_positioning_accuracy ' : obj [ ' repeated_positioning_accuracy ' ] ,
' boolean_chip_blowing_function ' : obj [ ' boolean_chip_blowing_function ' ] ,
' way_to_install ' : obj [ ' way_to_install ' ] ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
' carrying_capacity_max ' : obj [ ' carrying_capacity_max ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
} )
return zero_tray_param_str
""" 零点托盘: 将data数据转换成list数据 """
return { ' cod e' : obj [ ' cod e' ] ,
' fixture_model_id ' : self . env [ ' sf.fixture.model ' ] . sudo ( ) . search (
[ ( ' code ' , ' = ' , obj . get ( ' fixture_model_code ' ) ) ] ) . id ,
' name ' : obj [ ' name ' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' diameter ' : obj [ ' diameter ' ] ,
' weight ' : obj [ ' weight ' ] ,
' clamping_diameter ' : obj [ ' clamping_diameter ' ] ,
' connector_diameter ' : obj [ ' connector_diameter ' ] ,
' chucking_power_max ' : obj [ ' chucking_power_max ' ] ,
' repeated_positioning_accuracy ' : obj [ ' repeated_positioning_accuracy ' ] ,
' boolean_chip_blowing_function ' : obj [ ' boolean_chip_blowing_function ' ] ,
' way_to_install ' : obj [ ' way_to_install ' ] ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
' carrying_capacity_max ' : obj [ ' carrying_capacity_max ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
' active ' : obj [ ' active ' ] }
def _json_pneumatic_fixture_param ( self , obj ) :
pneumatic_fixture_param_str = ( 0 , ' ' , {
' nam e' : obj [ ' nam e' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' weight ' : obj [ ' weight ' ] ,
' gripper_length_min ' : obj [ ' gripper_length_min ' ] ,
' gripper_width_min ' : obj [ ' gripper_width_min ' ] ,
' gripper_h eight_min ' : obj [ ' gripper_h eight_min ' ] ,
' gripper_diameter _min ' : obj [ ' gripper_diameter _min ' ] ,
' gripper_leng th_max ' : obj [ ' gripper_leng th_max ' ] ,
' gripper_width_max ' : obj [ ' gripper_width_max ' ] ,
' gripper_height_max ' : obj [ ' gripper_height_max ' ] ,
' gripper_diameter _max ' : obj [ ' gripper_diameter _max ' ] ,
' chucking_power _max' : obj [ ' chucking_power _max' ] ,
' carrying_capacity _max' : obj [ ' carrying_capacity _max' ] ,
' rated_air_pressure ' : obj [ ' rated_air_pressure ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
' interface_ materials_model_id' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
} )
return pneumatic_fixture_param_str
""" 气动夹具: 将data数据转换成list数据 """
return { ' cod e' : obj [ ' cod e' ] ,
' fixture_model_id ' : self . env [ ' sf.fixture.model ' ] . sudo ( ) . search (
[ ( ' code ' , ' = ' , obj . get ( ' fixture_model_code ' ) ) ] ) . id ,
' name ' : obj [ ' name ' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' w eight' : obj [ ' w eight' ] ,
' gripper_length _min ' : obj [ ' gripper_length _min ' ] ,
' gripper_wid th_min ' : obj [ ' gripper_wid th_min ' ] ,
' gripper_height_min ' : obj [ ' gripper_height_min ' ] ,
' gripper_diameter_min ' : obj [ ' gripper_diameter_min ' ] ,
' gripper_length _max ' : obj [ ' gripper_length _max ' ] ,
' gripper_width _max' : obj [ ' gripper_width _max' ] ,
' gripper_height _max' : obj [ ' gripper_height _max' ] ,
' gripper_diameter_max ' : obj [ ' gripper_diameter_max ' ] ,
' chucking_power_max ' : obj [ ' chucking_power_max ' ] ,
' carrying_capacity_max ' : obj [ ' carrying_capacity_max ' ] ,
' rated_air_pressure ' : obj [ ' rated_air_pressure ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
' interface_materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
' active ' : obj [ ' active ' ] }
def _json_jaw_vice_fixture_param ( self , obj ) :
jaw_vice_fixture_param_str = ( 0 , ' ' , {
' nam e' : obj [ ' nam e' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' weight ' : obj [ ' weight ' ] ,
' gripper_length_min ' : obj [ ' gripper_length_min ' ] ,
' gripper_width_min ' : obj [ ' gripper_width_min ' ] ,
' gripper_h eight_min ' : obj [ ' gripper_h eight_min ' ] ,
' gripper_diameter _min ' : obj [ ' gripper_diameter _min ' ] ,
' gripper_leng th_max ' : obj [ ' gripper_leng th_max ' ] ,
' gripper_width_max ' : obj [ ' gripper_width_max ' ] ,
' gripper_height_max ' : obj [ ' gripper_height_max ' ] ,
' gripper_diameter _max ' : obj [ ' gripper_diameter _max ' ] ,
' chucking_power _max' : obj [ ' chucking_power _max' ] ,
' carrying_capacity _max' : obj [ ' carrying_capacity _max' ] ,
' transverse_groove ' : obj [ ' transverse_groove ' ] ,
' longitudinal_fitting_groove ' : obj [ ' longitudinal_fitting_groove ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
' interface_ materials_model_id' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
} )
return jaw_vice_fixture_param_str
""" 虎钳夹具: 将data数据转换成list数据 """
return { ' cod e' : obj [ ' cod e' ] ,
' fixture_model_id ' : self . env [ ' sf.fixture.model ' ] . sudo ( ) . search (
[ ( ' code ' , ' = ' , obj . get ( ' fixture_model_code ' ) ) ] ) . id ,
' name ' : obj [ ' name ' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' w eight' : obj [ ' w eight' ] ,
' gripper_length _min ' : obj [ ' gripper_length _min ' ] ,
' gripper_wid th_min ' : obj [ ' gripper_wid th_min ' ] ,
' gripper_height_min ' : obj [ ' gripper_height_min ' ] ,
' gripper_diameter_min ' : obj [ ' gripper_diameter_min ' ] ,
' gripper_length _max ' : obj [ ' gripper_length _max ' ] ,
' gripper_width _max' : obj [ ' gripper_width _max' ] ,
' gripper_height _max' : obj [ ' gripper_height _max' ] ,
' gripper_diameter_max ' : obj [ ' gripper_diameter_max ' ] ,
' chucking_power_max ' : obj [ ' chucking_power_max ' ] ,
' carrying_capacity_max ' : obj [ ' carrying_capacity_max ' ] ,
' transverse_groove ' : obj [ ' transverse_groove ' ] ,
' longitudinal_fitting_groove ' : obj [ ' longitudinal_fitting_groove ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
' interface_materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
' active ' : obj [ ' active ' ] }
def _json_magnet_fixture_param ( self , obj ) :
magnet_fixture_param_str = ( 0 , ' ' , {
' nam e' : obj [ ' nam e' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' height_tolerance_value ' : obj [ ' height_tolerance_value ' ] ,
' weight ' : obj [ ' weight ' ] ,
' gripper_length_min ' : obj [ ' gripper_length_min ' ] ,
' gripper_width_min ' : obj [ ' gripper_width_min ' ] ,
' gripper_h eight_min ' : obj [ ' gripper_h eight_min ' ] ,
' gripper_diameter _min ' : obj [ ' gripper_diameter _min ' ] ,
' gripper_leng th_max ' : obj [ ' gripper_leng th_max ' ] ,
' gripper_width_max ' : obj [ ' gripper_width_max ' ] ,
' gripper_height_max ' : obj [ ' gripper_height_max ' ] ,
' gripper_diameter _max ' : obj [ ' gripper_diameter _max ' ] ,
' rated_adsorption_force ' : obj [ ' rated_adsorption_force ' ] ,
' magnetic_field _height' : obj [ ' magnetic_field _height' ] ,
' magnetic_pole_plate_grinding_allowance ' : obj [ ' magnetic_pole_plate_grinding_allowance ' ] ,
' carrying_capacity_max ' : obj [ ' carrying_capacity_max ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
' interface_ materials_model_id' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
} )
return magnet_fixture_param_str
""" 磁吸夹具: 将data数据转换成list数据 """
return { ' cod e' : obj [ ' cod e' ] ,
' fixture_model_id ' : self . env [ ' sf.fixture.model ' ] . sudo ( ) . search (
[ ( ' code ' , ' = ' , obj . get ( ' fixture_model_code ' ) ) ] ) . id ,
' name ' : obj [ ' name ' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' height_tolerance_value ' : obj [ ' height_tolerance_value ' ] ,
' w eight' : obj [ ' w eight' ] ,
' gripper_length _min ' : obj [ ' gripper_length _min ' ] ,
' gripper_wid th_min ' : obj [ ' gripper_wid th_min ' ] ,
' gripper_height_min ' : obj [ ' gripper_height_min ' ] ,
' gripper_diameter_min ' : obj [ ' gripper_diameter_min ' ] ,
' gripper_length _max ' : obj [ ' gripper_length _max ' ] ,
' gripper_width_max ' : obj [ ' gripper_width_max ' ] ,
' gripper _height_max ' : obj [ ' gripper _height_max ' ] ,
' gripper_diameter_max ' : obj [ ' gripper_diameter_max ' ] ,
' rated_adsorption_force ' : obj [ ' rated_adsorption_force ' ] ,
' magnetic_field_height ' : obj [ ' magnetic_field_height ' ] ,
' magnetic_pole_plate_grinding_allowance ' : obj [ ' magnetic_pole_plate_grinding_allowance ' ] ,
' carrying_capacity_max ' : obj [ ' carrying_capacity_max ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
' interface_materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
' active ' : obj [ ' active ' ] }
def _json_adapter_board_fixture_param ( self , obj ) :
adapter_board_fixture_param_str = ( 0 , ' ' , {
' nam e' : obj [ ' nam e' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' weight ' : obj [ ' weight ' ] ,
' gripper_length_min ' : obj [ ' gripper_length_min ' ] ,
' gripper_width_min ' : obj [ ' gripper_width_min ' ] ,
' gripper_h eight_min ' : obj [ ' gripper_h eight_min ' ] ,
' gripper_diameter _min ' : obj [ ' gripper_diameter _min ' ] ,
' gripper_leng th_max ' : obj [ ' gripper_leng th_max ' ] ,
' gripper_width_max ' : obj [ ' gripper_width_max ' ] ,
' gripper_height_max ' : obj [ ' gripper_height_max ' ] ,
' gripper_diameter _max ' : obj [ ' gripper_diameter _max ' ] ,
' chucking_power _max' : obj [ ' chucking_power _max' ] ,
' carrying_capacity _max' : obj [ ' carrying_capacity _max' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
' screw_size ' : obj [ ' screw_size ' ] ,
' via_hole_diameter ' : obj [ ' via_hole_diameter ' ] ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
} )
return adapter_board_fixture_param_str
""" 转接板(锁板)夹具: 将data数据转换成list数据 """
return { ' cod e' : obj [ ' cod e' ] ,
' fixture_model_id ' : self . env [ ' sf.fixture.model ' ] . sudo ( ) . search (
[ ( ' code ' , ' = ' , obj . get ( ' fixture_model_code ' ) ) ] ) . id ,
' name ' : obj [ ' name ' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' w eight' : obj [ ' w eight' ] ,
' gripper_length _min ' : obj [ ' gripper_length _min ' ] ,
' gripper_wid th_min ' : obj [ ' gripper_wid th_min ' ] ,
' gripper_height_min ' : obj [ ' gripper_height_min ' ] ,
' gripper_diameter_min ' : obj [ ' gripper_diameter_min ' ] ,
' gripper_length _max ' : obj [ ' gripper_length _max ' ] ,
' gripper_width _max' : obj [ ' gripper_width _max' ] ,
' gripper_height _max' : obj [ ' gripper_height _max' ] ,
' gripper_diameter_max ' : obj [ ' gripper_diameter_max ' ] ,
' chucking_power_max ' : obj [ ' chucking_power_max ' ] ,
' carrying_capacity_max ' : obj [ ' carrying_capacity_max ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
' screw_size ' : obj [ ' screw_size ' ] ,
' via_hole_diameter ' : obj [ ' via_hole_diameter ' ] ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
' active ' : obj [ ' active ' ] }
def _json_scroll_chuck_param ( self , obj ) :
scroll_chuck_param_str = ( 0 , ' ' , {
' nam e' : obj [ ' nam e' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' diameter ' : obj [ ' diameter ' ] ,
' weight ' : obj [ ' weight ' ] ,
' gripper_length_min ' : obj [ ' gripper_length_min ' ] ,
' gripper_width_min ' : obj [ ' gripper_width_min ' ] ,
' gripper_h eight_min ' : obj [ ' gripper_h eight_min ' ] ,
' gripper_diameter _min ' : obj [ ' gripper_diameter _min ' ] ,
' gripper_leng th_max ' : obj [ ' gripper_leng th_max ' ] ,
' gripper_width_max ' : obj [ ' gripper_width_max ' ] ,
' gripper_height_max ' : obj [ ' gripper_height_max ' ] ,
' gripper_diameter _max ' : obj [ ' gripper_diameter _max ' ] ,
' chucking_power _max' : obj [ ' chucking_power _max' ] ,
' carrying_capacity _max' : obj [ ' carrying_capacity _max' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' materials_no ' , ' = ' , obj [ ' materials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
' mounting_hole_depth ' : obj [ ' mounting_hole_depth ' ] ,
' cen tering_diameter ' : obj [ ' cen tering_diameter ' ] ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
} )
return scroll_chuck_param_str
""" 转接板(锁板)夹具: 将data数据转换成list数据 """
return { ' cod e' : obj [ ' cod e' ] ,
' fixture_model_id ' : self . env [ ' sf.fixture.model ' ] . sudo ( ) . search (
[ ( ' code ' , ' = ' , obj . get ( ' fixture_model_code ' ) ) ] ) . id ,
' name ' : obj [ ' name ' ] ,
' length ' : obj [ ' length ' ] ,
' width ' : obj [ ' width ' ] ,
' height ' : obj [ ' height ' ] ,
' diameter ' : obj [ ' diameter ' ] ,
' w eight' : obj [ ' w eight' ] ,
' gripper_length _min ' : obj [ ' gripper_length _min ' ] ,
' gripper_wid th_min ' : obj [ ' gripper_wid th_min ' ] ,
' gripper_height_min ' : obj [ ' gripper_height_min ' ] ,
' gripper_diameter_min ' : obj [ ' gripper_diameter_min ' ] ,
' gripper_length _max ' : obj [ ' gripper_length _max ' ] ,
' gripper_width _max' : obj [ ' gripper_width _max' ] ,
' gripper_height _max' : obj [ ' gripper_height _max' ] ,
' gripper_diameter_max ' : obj [ ' gripper_diameter_max ' ] ,
' chucking_power_max ' : obj [ ' chucking_power_max ' ] ,
' carrying_capacity_max ' : obj [ ' carrying_capacity_max ' ] ,
' materials_model_id ' : self . env [ ' sf.materials.model ' ] . sudo ( ) . search (
[ ( ' ma terials_no ' , ' = ' , obj [ ' ma terials_model_id ' ] ) , ( ' active ' , ' = ' , True ) ] ) . id ,
' rigidity ' : obj [ ' rigidity ' ] ,
' mounting_hole_depth ' : obj [ ' mounting_hole_depth ' ] ,
' centering_diameter ' : obj [ ' centering_diameter ' ] ,
' type_of_drive ' : obj [ ' type_of_drive ' ] ,
' active ' : obj [ ' active ' ] }