643 lines
50 KiB
XML
643 lines
50 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<data>
|
|
<!-- <record model="ir.ui.view" id="view_product_template_only_form_inherit_sf">-->
|
|
<!-- <field name="name">product.template.only.form.inherit.sf</field>-->
|
|
<!-- <field name="model">product.template</field>-->
|
|
<!-- <field name="inherit_id" ref="product.product_template_only_form_view"/>-->
|
|
<!-- <field name="arch" type="xml">-->
|
|
<!-- <field name="barcode" position="replace">-->
|
|
<!-- <field name='barcode' invisible="1"/>-->
|
|
<!-- </field>-->
|
|
<!-- <field name="default_code" position="replace">-->
|
|
<!-- <field name='default_code' invisible="1"/>-->
|
|
<!-- </field>-->
|
|
<!-- </field>-->
|
|
<!-- </record>-->
|
|
|
|
<record model="ir.ui.view" id="view_product_template_form_inherit_sf">
|
|
<field name="name">product.template.form.inherit.sf</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="sale.product_template_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//label[@for='list_price']" position="before">
|
|
<field name='categ_type' invisible="1"/>
|
|
<field name="upload_model_file"
|
|
widget="many2many_binary"
|
|
attrs="{'invisible': ['|', ('categ_type', '!=', '成品'),('categ_type', '=', False)]}"/>
|
|
<field name="model_file" widget="Viewer3D" string="模型" readonly="1" force_save="1"
|
|
attrs="{'invisible': ['|','|', ('categ_type', '!=', '成品'),('categ_type', '=', False),('model_file', '=', False)]}"/>
|
|
</xpath>
|
|
<field name="categ_id" position="replace">
|
|
<field name='categ_id' invisible="1"/>
|
|
</field>
|
|
<field name="product_tag_ids" position="after">
|
|
<field name="default_code" attrs="{'invisible': [('product_variant_count', '>', 1)]}"/>
|
|
<field name="barcode" attrs="{'invisible': [('product_variant_count', '>', 1)]}"/>
|
|
</field>
|
|
<field name="invoice_policy" position="after">
|
|
<field name='categ_id'/>
|
|
<field name='cutting_tool_type' invisible="1"/>
|
|
<field name="fixture_material_type" invisible="1"/>
|
|
<field name="embryo_model_type_id" string="模型类型"
|
|
attrs="{'invisible': ['|',('categ_type', '!=', '坯料'),('categ_type', '=', False)]}"/>
|
|
<field name="materials_id" string="材料" placeholder="请选择"
|
|
attrs="{'invisible': [('categ_type', 'not in', ['成品','坯料', '原材料'])]}"/>
|
|
<field name="materials_type_id" string="型号" placeholder="请选择"
|
|
domain="[('materials_id', '=', materials_id)]"
|
|
attrs="{'invisible': [('categ_type', 'not in', ['成品','坯料', '原材料'])]}"/>
|
|
<field name="server_product_process_parameters_id" string="表面工艺参数"
|
|
options="{'no_create': True}"
|
|
attrs="{'invisible': ['|',('categ_type', '!=', '表面工艺'),('categ_type', '=', False)]}"/>
|
|
<field name="cutting_tool_material_id" attrs="{'invisible': [('categ_type', '!=', '刀具')]}"
|
|
placeholder="请选择"/>
|
|
<field name="cutting_tool_model_id" placeholder="请选择"
|
|
attrs="{'invisible': [('categ_type', '!=', '刀具')]}"
|
|
domain="[('cutting_tool_material_id','=',cutting_tool_material_id)]"/>
|
|
<field name="specification_id" placeholder="请选择" class="diameter"
|
|
attrs="{'invisible': [('categ_type', '!=', '刀具')]}"
|
|
domain="[('standard_library_id','=',cutting_tool_model_id)]"/>
|
|
<field name="fixture_material_id" attrs="{'invisible': [('categ_type', '!=', '夹具')]}"
|
|
placeholder="请选择"/>
|
|
<!-- <field name="fixture_model_id" string="型号" placeholder="请选择"-->
|
|
<!-- context="{'default_fixture_material_id': fixture_material_id,'default_multi_mounting_type_id': fixture_multi_mounting_type_id}"-->
|
|
<!-- attrs="{'invisible': [('categ_type', '!=', '夹具')]}"-->
|
|
<!-- domain="[('fixture_material_id','=',fixture_material_id)]"/>-->
|
|
</field>
|
|
|
|
<xpath expr="//label[@for='volume']" position="before">
|
|
<label for="length" string="尺寸"
|
|
attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/>
|
|
<div class="o_address_format"
|
|
attrs="{'invisible':[('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}">
|
|
<label for="length" string="长"/>
|
|
<field name="length" class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="width" string="宽"/>
|
|
<field name="width" class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="height" string="高"/>
|
|
<field name="height" class="o_address_zip"/>
|
|
</div>
|
|
</xpath>
|
|
<xpath expr="//page[last()]" position="after">
|
|
<page string="加工参数">
|
|
<group>
|
|
<group string="模型">
|
|
<label for="model_long" string="尺寸[mm]"/>
|
|
<div class="o_address_format">
|
|
<label for="model_long" string="长"/>
|
|
<field name="model_long" class="o_address_zip"/>
|
|
<label for="model_width" string="宽"/>
|
|
<field name="model_width" class="o_address_zip"/>
|
|
<label for="model_height" string="高"/>
|
|
<field name="model_height" class="o_address_zip"/>
|
|
</div>
|
|
<field name="model_volume" string="体积[mm³]"/>
|
|
<field name="product_model_type_id" string="模型类型"/>
|
|
<field name="model_processing_panel" placeholder="例如R,U" string="加工面板"/>
|
|
<field name="model_machining_precision"/>
|
|
<field name="model_process_parameters_ids" string="表面工艺参数" widget="many2many_tags"
|
|
options="{'no_create': True}"/>
|
|
<field name="model_remark" string="备注说明"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
<!-- <xpath expr="//page[@name='general_information']" position="after">-->
|
|
<!-- <page string="刀具物料参数" attrs="{'invisible': [('categ_type', '!=', '刀具')]}">-->
|
|
<!-- </page>-->
|
|
<!-- </xpath>-->
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record model="ir.ui.view" id="view_product_template_only_form_inherit_sf">
|
|
<field name="name">product.template.only.form.inherit.sf</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="product.product_template_only_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<field name="barcode" position="replace">
|
|
<field name='barcode' invisible="1"/>
|
|
</field>
|
|
<field name="default_code" position="replace">
|
|
<field name='default_code' invisible="1"/>
|
|
</field>
|
|
<xpath expr="//page[@name='variants']" position="before">
|
|
<page string="刀具物料参数" attrs="{'invisible': [('categ_type', '!=', '刀具')]}">
|
|
<group>
|
|
<group attrs="{'invisible': [('categ_type', '!=', '刀具')]}" col="1">
|
|
<field name="cutting_tool_type_id" options="{'no_create': True}" placeholder="请选择"/>
|
|
<field name="brand_id" options="{'no_create': True}" placeholder="请选择"/>
|
|
<field name="tool_hardness" string="硬度(hrc)"/>
|
|
<label for="cutting_tool_run_out_accuracy_min" string="端跳精度"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<div class="o_address_format"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}">
|
|
<label for="cutting_tool_run_out_accuracy_min" string="最小"/>
|
|
<field name="cutting_tool_run_out_accuracy_min" class="o_address_zip"
|
|
options="{'format': false}"
|
|
attrs="{'invisible': [('cutting_tool_type','!=','整体式刀具')]}"/>
|
|
<span>(mm)&nbsp;</span>
|
|
<label for="cutting_tool_run_out_accuracy_max" string="最大"/>
|
|
<field name="cutting_tool_run_out_accuracy_max" class="o_address_zip"
|
|
options="{'format': false}"
|
|
attrs="{'invisible': [('cutting_tool_type','!=','整体式刀具')]}"/>
|
|
<span>(mm)&nbsp;</span>
|
|
</div>
|
|
|
|
<field name="tool_width"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀杆')]}"/>
|
|
<field name="tool_height"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀杆')]}"/>
|
|
<field name="cutting_tool_flange_length"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="cutting_tool_shank_outer_diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="cutting_tool_shank_inner_diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
|
|
<!-- <field name="materials_type_id" options="{'no_create': True}" string="刀具材质"-->
|
|
<!-- attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"-->
|
|
<!-- placeholder="请选择"/>-->
|
|
<!-- <field name="tool_hardness" string="刀具硬度(hrc)"-->
|
|
<!-- attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>-->
|
|
<!-- <field name="materials_type_id" options="{'no_create': True}" string="夹头材质"-->
|
|
<!-- attrs="{'invisible': [('cutting_tool_type', '!=', '夹头')]}"-->
|
|
<!-- placeholder="请选择"/>-->
|
|
<!-- <field name="tool_hardness" string="夹头硬度(hrc)"-->
|
|
<!-- attrs="{'invisible': [('cutting_tool_type', '!=', '夹头')]}"/>-->
|
|
<!-- <field name="materials_type_id" options="{'no_create': True}" string="刀柄材质"-->
|
|
<!-- attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"-->
|
|
<!-- placeholder="请选择"/>-->
|
|
<!-- <field name="tool_hardness" string="刀柄硬度(hrc)"-->
|
|
<!-- attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>-->
|
|
|
|
<field name="cutting_tool_blade_diameter" string="刃部直径(mm)" class="diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_blade_length"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_blade_number" placeholder="请选择"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_shank_length"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_neck_length" string="颈部长度(mm)"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_neck_diameter" string="颈部直径(mm)" class="diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_shank_diameter" string="柄部直径(mm)" class="diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<!--刀片-->
|
|
<field name="cutting_tool_cutter_bar_ids" widget="many2many_tags"
|
|
options="{'no_create': True}"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_cutter_pad_ids" widget="many2many_tags"
|
|
options="{'no_create': True}"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<label for="tool_length" string="尺寸(mm)"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<div class="test_model"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}">
|
|
<label for="tool_length" string="长"/>
|
|
<field name="tool_length" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
<label for="tool_thickness" string="厚"/>
|
|
<field name="tool_thickness" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
<label for="tool_width" string="宽"/>
|
|
<field name="tool_width" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
</div>
|
|
<field name="cutting_tool_cut_blade_length"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_blade_tip_circular_arc_radius"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<!-- <field name="cutting_tool_top_angle"-->
|
|
<!-- attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>-->
|
|
<field name="cutting_tool_inscribed_circle_diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_install_aperture_diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_chip_breaker_groove"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
|
|
<field name="cutting_tool_bladed_teeth_model"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_cut_depth_max"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_blade_blade_number"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_blade_width"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<!--刀杆-->
|
|
<field name="cutting_tool_total_length"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘','夹头','刀柄'))]}"/>
|
|
<label for="cutting_tool_knife_head_length" string="刀头尺寸(mm)"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀杆')]}"/>
|
|
<div class="test_model"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀杆')]}">
|
|
<label for="cutting_tool_knife_head_length" string="长"/>
|
|
<field name="cutting_tool_knife_head_length" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
<label for="cutting_tool_knife_head_width" string="宽"/>
|
|
<field name="cutting_tool_knife_head_width" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
<label for="cutting_tool_knife_head_height" string="高"/>
|
|
<field name="cutting_tool_knife_head_height" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
</div>
|
|
<field name="cutting_tool_blade_diameter" string="刃部直径(mm)" class="diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
|
|
<field name="cutting_tool_blade_length"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀盘')]}"/>
|
|
|
|
<field name="cutting_tool_cutter_arbor_diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀杆')]}"/>
|
|
<field name="cutting_tool_cut_blade_length" string="切削刃长度(mm)"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
<field name="cutting_tool_cut_depth_max"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
<field name="cutting_tool_min_machining_aperture"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀杆')]}"/>
|
|
<field name="cutting_tool_install_blade_tip_num"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀杆')]}"/>
|
|
<field name="cutting_tool_main_included_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
<field name="cutting_tool_rear_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀杆')]}"/>
|
|
<!--刀盘-->
|
|
<field name="cutting_tool_cutter_head_diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀盘')]}"/>
|
|
<field name="cutting_tool_interface_diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀盘')]}"/>
|
|
<field name="cutting_tool_clamping_way"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<!--夹头-->
|
|
<field name="cutting_tool_clamping_length"
|
|
attrs='{"invisible": [("cutting_tool_type","!=","夹头")]}'/>
|
|
<field name="cutting_tool_clamping_tolerance"
|
|
attrs='{"invisible": [("cutting_tool_type","!=","夹头")]}'/>
|
|
<label for="cutting_tool_clamping_diameter_min" string="夹持直径"
|
|
attrs='{"invisible": [("cutting_tool_type","not in",("夹头","刀柄"))]}'/>
|
|
<div class="o_address_format"
|
|
attrs='{"invisible": [("cutting_tool_type","not in",("夹头","刀柄"))]}'>
|
|
<label for="cutting_tool_clamping_diameter_min" string="最小"/>
|
|
<field name="cutting_tool_clamping_diameter_min" class="o_address_zip diameter"
|
|
options="{'format': false}"
|
|
attrs="{'required': [('cutting_tool_type','not in',('夹头','刀柄'))]}"/>
|
|
<span>(mm)&nbsp;</span>
|
|
<label for="cutting_tool_clamping_diameter_max" string="最大"/>
|
|
<field name="cutting_tool_clamping_diameter_max" class="o_address_zip diameter"
|
|
options="{'format': false}"
|
|
attrs="{'required': [('cutting_tool_type','not in',('夹头','刀柄'))]}"/>
|
|
<span>(mm)&nbsp;</span>
|
|
</div>
|
|
<field name="cutting_tool_clamping_way"
|
|
attrs='{"invisible": [("cutting_tool_type","!=","夹头")]}'/>
|
|
<field name="cutting_tool_top_diameter" class="diameter"
|
|
attrs='{"invisible": [("cutting_tool_type","!=","夹头")]}'/>
|
|
<field name="cutting_tool_outer_diameter" class="diameter"
|
|
attrs='{"invisible": [("cutting_tool_type","!=","夹头")]}'/>
|
|
<field name="cutting_tool_inner_diameter" class="diameter"
|
|
attrs='{"invisible": [("cutting_tool_type","!=","夹头")]}'/>
|
|
<!--夹头-->
|
|
|
|
<field name="cutting_tool_standard_speed"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="cutting_tool_speed_max"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="cutting_tool_change_time"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="cutting_tool_cooling_type"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
</group>
|
|
<group attrs="{'invisible': [('categ_type', '!=', '刀具')]}">
|
|
<field name="materials_type_id" options="{'no_create': True}" placeholder="请选择"
|
|
string="材质"/>
|
|
<field name="coating_material"/>
|
|
<field name="cutting_tool_blade_type"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_coarse_medium_fine" string="粗/中/精" placeholder="请选择"
|
|
attrs="{'required': [('cutting_tool_type','=','整体式刀具')],'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片'))]}"/>
|
|
<!--整体式刀具-->
|
|
<field name="cutting_tool_blade_tip_working_size" string="刀尖直径(mm)" class="diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_blade_tip_diameter" string="刀尖直径(mm)" class="diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_blade_tip_taper" string="刀尖锥度(°)"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_blade_helix_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_pitch"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_blade_width"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_blade_depth"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="cutting_tool_cut_depth"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
|
|
|
|
<field name="tool_weight"
|
|
attrs='{"invisible": [("cutting_tool_type","not in",("夹头","刀柄"))]}'/>
|
|
<field name="cutting_tool_taper"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('夹头','刀柄'))]}"/>
|
|
|
|
<field name="cutting_tool_jump_accuracy"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="cutting_tool_rear_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片'))]}"/>
|
|
<field name="cutting_tool_main_included_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片'))]}"/>
|
|
<!-- <field name="cutting_tool_front_angle"-->
|
|
<!-- attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片'))]}"/>-->
|
|
<field name="cutting_tool_top_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片'))]}"/>
|
|
<field name="cutting_tool_blade_tip_dip_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_side_cutting_edge_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_thread_model"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_pitch"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_thread_num"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_blade_tip_height_tolerance"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_inscribed_circle_tolerance"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutting_tool_thickness_tolerance"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<!--刀柄-->
|
|
<field name="cutting_tool_is_rough_finish"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="cutting_tool_is_finish"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="cutting_tool_is_drill_hole"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="cutting_tool_is_high_speed_cutting"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="cutting_tool_is_safety_lock" string="有无安全锁"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
|
|
|
|
<field name="cutting_tool_jump_accuracy" string="跳动精度(mm)"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '夹头')]}"/>
|
|
<field name="cutting_tool_max_load_capacity"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '夹头')]}"/>
|
|
<field name="cutting_tool_er_size_model"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '夹头')]}"/>
|
|
<field name="cutting_tool_handle_ids" widget="many2many_tags"
|
|
options="{'no_create': True}"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '夹头')]}"/>
|
|
<field name="cooling_suit_type_ids"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '夹头')]}"/>
|
|
<field name="apply_lock_nut_model"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="apply_lock_wrench_model"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<!-- 刀杆 -->
|
|
<field name="cutting_tool_installing_structure"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
<field name="cutting_tool_cooling_hole"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
<field name="cutting_tool_locating_slot_code"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
<field name="cutting_tool_blade_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
<field name="cutting_tool_tool_shim"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀杆')]}"/>
|
|
<field name="cutting_tool_cotter_pin"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀杆')]}"/>
|
|
<field name="cutting_tool_pressing_plate"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀杆')]}"/>
|
|
<field name="cutting_tool_screw"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
<field name="cutting_tool_wrench"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
<!-- 刀盘 -->
|
|
<field name="cutting_tool_blade_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀盘')]}"/>
|
|
<field name="cutting_tool_blade_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀盘')]}"/>
|
|
|
|
</group>
|
|
</group>
|
|
<group string="适配刀片形状"
|
|
attrs="{'invisible': [('cutting_tool_type', 'in', ('刀柄','夹头','整体式刀具',False))]}">
|
|
<field name="fit_blade_shape_ids" string="" widget="custom_many2many_checkboxes"/>
|
|
</group>
|
|
<group string="适合加工方式"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀杆','刀盘','刀片'))]}">
|
|
<field name="suitable_machining_method_ids" string=""
|
|
widget="custom_many2many_checkboxes"/>
|
|
</group>
|
|
<group string="刀尖特征"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀杆','刀盘','刀片'))]}">
|
|
<field name="blade_tip_characteristics_ids" string=""
|
|
widget="custom_many2many_checkboxes"/>
|
|
</group>
|
|
<group attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀杆','刀盘','刀片'))]}">
|
|
<group string="柄部类型" attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}">
|
|
<field name="handle_type_ids" string="" widget="custom_many2many_checkboxes"/>
|
|
</group>
|
|
<group string="压紧方式"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}">
|
|
<field name="compaction_way_ids" string="" widget="custom_many2many_checkboxes"/>
|
|
</group>
|
|
</group>
|
|
<group attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀杆','刀盘','刀片'))]}">
|
|
<group string="走刀方向">
|
|
<field name="cutting_direction_ids" string="" widget="custom_many2many_checkboxes"/>
|
|
</group>
|
|
<group string="适合冷却液">
|
|
<field name="suitable_coolant_ids" string="" widget="custom_many2many_checkboxes"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="切削速度Vc">
|
|
<field name="cutting_speed_ids" string="" widget="one2many">
|
|
<tree editable="bottom">
|
|
<!-- <field name="order"/>-->
|
|
<field name="execution_standard_id"/>
|
|
<field name="material_code"/>
|
|
<field name="material_id"/>
|
|
<field name="material_grade"/>
|
|
<field name="tensile_strength"/>
|
|
<field name="hardness"/>
|
|
<field name="cutting_speed_n1"/>
|
|
<field name="cutting_speed_n2"/>
|
|
<field name="cutting_speed_n3"/>
|
|
<field name="cutting_speed_n4"/>
|
|
<field name="cutting_speed_n5"/>
|
|
<field name="rough_machining"/>
|
|
<field name="precision_machining"/>
|
|
<field name="application"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="每齿走刀量fz">
|
|
<field name="feed_per_tooth_ids" string="" widget="one2many">
|
|
<tree editable="bottom">
|
|
<field name="cutting_speed"
|
|
attrs="{'readonly': [('materials_type_id','!=',False)]}"/>
|
|
<field name="machining_method" placeholder="请选择"
|
|
attrs="{'readonly': [('cutting_speed','!=',False)]}"/>
|
|
<field name="materials_type_id" placeholder="请选择"
|
|
attrs="{'readonly': [('cutting_speed','!=',False)]}"/>
|
|
<field name="blade_diameter"/>
|
|
<field name="feed_per_tooth"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
</notebook>
|
|
</page>
|
|
<page string="夹具物料参数" attrs="{'invisible': [('categ_type', '!=', '夹具')]}">
|
|
<group attrs='{"invisible": [("fixture_material_type","not in",("气动夹具","转接板(锁板)夹具","磁吸夹具","虎钳夹具","零点卡盘","零点托盘"))]}'>
|
|
<group>
|
|
<field name="brand_id"/>
|
|
<field name="fixture_multi_mounting_type_id" options="{'no_create': True}"/>
|
|
<label for="tool_length" string="尺寸(mm)"/>
|
|
<div class="o_address_format">
|
|
<label for="tool_length" string="长"/>
|
|
<field name="tool_length" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
<!-- <span>&nbsp;</span>-->
|
|
<label for="tool_width" string="宽"/>
|
|
<field name="tool_width" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
<!-- <span>&nbsp;</span>-->
|
|
<label for="tool_height" string="高"/>
|
|
<field name="tool_height" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
</div>
|
|
<field name="tool_weight"></field>
|
|
<label for="fixture_clamp_workpiece_length_max" string="夹持工件最大尺寸(mm)"
|
|
attrs='{"invisible": [("fixture_material_type","in",("零点卡盘","零点托盘"))]}'/>
|
|
<div class="o_address_format"
|
|
attrs='{"invisible": [("fixture_material_type","in",("零点卡盘","零点托盘"))]}'>
|
|
<label for="fixture_clamp_workpiece_length_max" string="长"/>
|
|
<field name="fixture_clamp_workpiece_length_max" class="o_address_zip"
|
|
options="{'format': false}"
|
|
attrs="{'required': [('fixture_material_type', 'in',('气动夹具','转接板(锁板)夹具','磁吸夹具','虎钳夹具'))]}"/>
|
|
<!-- <span>&nbsp;</span>-->
|
|
<label for="fixture_clamp_workpiece_width_max" string="宽"/>
|
|
<field name="fixture_clamp_workpiece_width_max" class="o_address_zip"
|
|
options="{'format': false}"
|
|
attrs="{'required': [('fixture_material_type', 'in',('气动夹具','转接板(锁板)夹具','磁吸夹具','虎钳夹具'))]}"/>
|
|
<!-- <span>&nbsp;</span>-->
|
|
<label for="fixture_clamp_workpiece_height_max" string="高"/>
|
|
<field name="fixture_clamp_workpiece_height_max" class="o_address_zip"
|
|
options="{'format': false}"
|
|
attrs="{'required': [('fixture_material_type', 'in',('气动托盘','转接板(锁板)夹具','磁吸夹具','虎钳夹具'))]}"/>
|
|
</div>
|
|
<field name="fixture_clamp_workpiece_diameter_max"
|
|
attrs="{'invisible': [('fixture_material_type','in',('零点卡盘','零点托盘'))],'required': [('fixture_material_type', 'in',('气动夹具','转接板(锁板)夹具','磁吸夹具','虎钳夹具'))]}"/>
|
|
<field name="fixture_maximum_carrying_weight"></field>
|
|
<field name="fixture_maximum_clamping_force"></field>
|
|
</group>
|
|
<group>
|
|
<field name="materials_type_id" options="{'no_create': True}"/>
|
|
<field name="fixture_clamping_way"
|
|
attrs='{"invisible": [("fixture_material_type","not in",("气动夹具","磁吸夹具","虎钳夹具"))]}'/>
|
|
<field name="fixture_port_type"
|
|
attrs='{"invisible": [("fixture_material_type","not in",("气动夹具","磁吸夹具","虎钳夹具"))]}'/>
|
|
<field name="fixture_through_hole_size"
|
|
attrs='{"invisible": [("fixture_material_type","!=",("转接板(锁板)夹具"))]}'/>
|
|
<field name="fixture_screw_size"
|
|
attrs='{"invisible": [("fixture_material_type","!=",("转接板(锁板)夹具"))]}'/>
|
|
<field name="fixture_driving_way"
|
|
attrs='{"invisible": [("fixture_material_type","not in",("虎钳夹具","零点卡盘","零点托盘"))]}'/>
|
|
<field name="fixture_apply_machine_tool_type_ids" options="{'no_create': True}"
|
|
widget="many2many_tags"
|
|
attrs='{"invisible": [("fixture_material_type","not in",("零点卡盘","零点托盘"))]}'/>
|
|
</group>
|
|
</group>
|
|
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_product_category_form_inherit_sf" model="ir.ui.view">
|
|
<field name="name">product.category.form.inherit.sf</field>
|
|
<field name="model">product.category</field>
|
|
<field name="inherit_id" ref="product.product_category_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<field name="parent_id" position="before">
|
|
<field name="type"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_template_property_form" model="ir.ui.view">
|
|
<field name="name">product.template.stock.property.form.inherit</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="product.product_template_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//group[@name='group_lots_and_weight']" position="after">
|
|
<group string="订单规则">
|
|
<field name="single_manufacturing" string="单个制造" widget="checkbox"/>
|
|
</group>
|
|
</xpath>
|
|
|
|
<page name="inventory" position="inside">
|
|
<group>
|
|
<group string="Description for Receipts">
|
|
<field name="description_pickingin" nolabel="1"
|
|
placeholder="This note is added to receipt orders (e.g. where to store the product in the warehouse)."/>
|
|
</group>
|
|
<group string="Description for Delivery Orders">
|
|
<field name="description_pickingout" nolabel="1"
|
|
placeholder="This note is added to delivery orders."/>
|
|
</group>
|
|
<group string="Description for Internal Transfers" groups="stock.group_stock_multi_locations">
|
|
<field name="description_picking"
|
|
placeholder="This note is added to internal transfer orders (e.g. where to pick the product in the warehouse)."
|
|
nolabel="1"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
<page name="inventory" position="attributes">
|
|
<attribute name="groups">stock.group_stock_user,product.group_stock_packaging</attribute>
|
|
</page>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_mrp_bom_form_inherit_sf" model="ir.ui.view">
|
|
<field name="name">mrp.bom.form.inherit.sf</field>
|
|
<field name="model">mrp.bom</field>
|
|
<field name="inherit_id" ref="mrp_subcontracting.mrp_bom_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<field name="subcontractor_ids" position="replace">
|
|
<field name="subcontractor_id"
|
|
attrs="{'invisible': [('type', '!=', 'subcontract')], 'required': [('type', '=', 'subcontract')]}"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="product_template_search_view_sf" model="ir.ui.view">
|
|
<field name="name">product.template.search</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="product.product_template_search_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//filter[@name='consumable']" position="after">
|
|
<separator/>
|
|
<filter name="finish_product" string="成品" domain="[('categ_id.type','=','成品')]"/>
|
|
<filter name="embryo" string="坯料" domain="[('categ_id.type','=','坯料')]"/>
|
|
<filter name="raw_bom" string="原材料" domain="[('categ_id.type','=','原材料')]"/>
|
|
<!-- <searchpanel>-->
|
|
<!-- <field name="categ_id" icon="fa-building" enable_counters="1"/>-->
|
|
<!-- </searchpanel>-->
|
|
</xpath>
|
|
<xpath expr="//search" position="inside">
|
|
<searchpanel>
|
|
<field name="categ_id" icon="fa-building" enable_counters="1"/>
|
|
</searchpanel>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo> |