402 lines
27 KiB
XML
402 lines
27 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<data>
|
|
<!-- ================================================刀具物料================================================ -->
|
|
<record id="view_cutting_tool_material_tree" model="ir.ui.view">
|
|
<field name="name">sf.cutting.tool.material.tree</field>
|
|
<field name="model">sf.cutting.tool.material</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="刀具物料" create="0" edit="0" delete="1">
|
|
<field name="code"/>
|
|
<field name="name" string="名称"/>
|
|
<field name="remark"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_cutting_tool_material_search">
|
|
<field name="name">sf.cutting.tool.material.search</field>
|
|
<field name="model">sf.cutting.tool.material</field>
|
|
<field name="arch" type="xml">
|
|
<search string="刀具物料">
|
|
<field name="name" string="名称搜索" filter_domain="[('name','ilike',self)]"/>
|
|
<field name="code" string="编码搜索" filter_domain="[('code','ilike',self)]"/>
|
|
<filter name="filter_active" string="已归档" domain="[('active','=',False)]"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ================================================功能刀具================================================ -->
|
|
<record id="view_functional_cutting_tool_tree" model="ir.ui.view">
|
|
<field name="name">sf.functional.cutting.tool.tree</field>
|
|
<field name="model">sf.functional.cutting.tool</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="功能刀具">
|
|
<field name="code"/>
|
|
<field name="name" string="名称"/>
|
|
<field name="mrs_cutting_tool_type_id"/>
|
|
<!-- <field name="mrs_cutting_tool_integral_model_ids" optional="hide"/>-->
|
|
<!-- <field name="mrs_cutting_tool_blade_model_ids" optional="hide"/>-->
|
|
<!-- <field name="mrs_cutting_tool_cutterbar_model_ids" optional="hide"/>-->
|
|
<!-- <field name="mrs_cutting_tool_cutterpad_model_ids" optional="hide"/>-->
|
|
<!-- <field name="mrs_cutting_tool_cutterhandle_model_ids" optional="hide"/>-->
|
|
<!-- <field name="mrs_cutting_tool_cutterhead_model_ids" optional="hide"/>-->
|
|
<!-- <field name="image" widget='image'/>-->
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_functional_cutting_tool_form" model="ir.ui.view">
|
|
<field name="name">sf.functional.cutting.tool.form</field>
|
|
<field name="model">sf.functional.cutting.tool</field>
|
|
<field name="arch" type="xml">
|
|
<form string="功能刀具">
|
|
<sheet>
|
|
<group col='1'>
|
|
<group string='基本信息'>
|
|
<group>
|
|
<field name="code"/>
|
|
<field name="name" string="名称"/>
|
|
<field name="mrs_cutting_tool_type_id"
|
|
options="{'no_create': True, 'no_quick_create': True}"/>
|
|
<field name="mrs_cutting_tool_model_id"
|
|
options="{'no_create': True, 'no_quick_create': True}"
|
|
attrs="{'invisible': True}"/>
|
|
<!-- <field name="mrs_cutting_tool_integral_model_ids"-->
|
|
<!-- options="{'no_create': True, 'no_quick_create': True}"-->
|
|
<!-- widget="many2many_tags"/>-->
|
|
<!-- <field name="mrs_cutting_tool_blade_model_ids"-->
|
|
<!-- options="{'no_create': True, 'no_quick_create': True}"-->
|
|
<!-- widget="many2many_tags"/>-->
|
|
<!-- <field name="mrs_cutting_tool_cutterbar_model_ids"-->
|
|
<!-- options="{'no_create': True, 'no_quick_create': True}"-->
|
|
<!-- widget="many2many_tags"/>-->
|
|
<!-- <field name="mrs_cutting_tool_cutterpad_model_ids"-->
|
|
<!-- options="{'no_create': True, 'no_quick_create': True}"-->
|
|
<!-- widget="many2many_tags"/>-->
|
|
<!-- <field name="mrs_cutting_tool_cutterhandle_model_ids"-->
|
|
<!-- options="{'no_create': True, 'no_quick_create': True}"-->
|
|
<!-- widget="many2many_tags"/>-->
|
|
<!-- <field name="mrs_cutting_tool_cutterhead_model_ids"-->
|
|
<!-- options="{'no_create': True, 'no_quick_create': True}"-->
|
|
<!-- widget="many2many_tags"/>-->
|
|
</group>
|
|
<!-- <group>-->
|
|
<!-- <field name="image" nolabel="1" widget="image"/>-->
|
|
<!-- </group>-->
|
|
|
|
</group>
|
|
<!-- <group string='参数信息'>-->
|
|
<!-- <group>-->
|
|
<!-- <field name="diameter"/>-->
|
|
<!-- <field name="tool_grade"/>-->
|
|
<!-- <field name="machining_accuracy"/>-->
|
|
<!-- <field name="tool_length"/>-->
|
|
<!-- <field name="blade_number"/>-->
|
|
<!-- </group>-->
|
|
<!-- <group>-->
|
|
<!-- <field name="integral_blade_length"/>-->
|
|
<!-- <field name="effective_blade_length"/>-->
|
|
<!-- <field name="max_life"/>-->
|
|
<!-- <field name="is_standard"/>-->
|
|
<!-- </group>-->
|
|
<!-- </group>-->
|
|
<!-- <group string='其他信息'>-->
|
|
<!-- <group>-->
|
|
<!-- <field name="applicable_range"/>-->
|
|
<!-- </group>-->
|
|
<!-- </group>-->
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_functional_cutting_tool_search">
|
|
<field name="name">sf.functional.cutting.tool.search</field>
|
|
<field name="model">sf.functional.cutting.tool</field>
|
|
<field name="arch" type="xml">
|
|
<search string="功能刀具">
|
|
<field name="name" string="名称搜索" filter_domain="[('name','ilike',self)]"/>
|
|
<field name="code" string="编码搜索" filter_domain="[('code','ilike',self)]"/>
|
|
<filter name="filter_active" string="已归档" domain="[('active','=',False)]"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<!-- ================================================功能刀具类型================================================ -->
|
|
<record id="view_cutter_function_tree" model="ir.ui.view">
|
|
<field name="name">sf.cutter.function.tree</field>
|
|
<field name="model">sf.functional.cutting.tool.model</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="功能刀具类型" create="0" delete="0" edit="1">
|
|
<field name="name" string="名称"/>
|
|
<field name="code"/>
|
|
<field name="remark"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- 功能刀具类型搜索 -->
|
|
<record model="ir.ui.view" id="view_cutter_function_search">
|
|
<field name="name">sf.cutter.function.search</field>
|
|
<field name="model">sf.functional.cutting.tool.model</field>
|
|
<field name="arch" type="xml">
|
|
<search string="功能刀具类型">
|
|
<field name="name" string="名称搜索" filter_domain="[('name','ilike',self)]"/>
|
|
<field name="code" string="编码搜索" filter_domain="[('code','ilike',self)]"/>
|
|
<filter name="filter_active" string="已归档" domain="[('active','=',False)]"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- ================================================刀具标准库================================================ -->
|
|
<record id="view_cutting_tool_standard_library_tree" model="ir.ui.view">
|
|
<field name="name">sf.cutting_tool.standard.library.tree</field>
|
|
<field name="model">sf.cutting_tool.standard.library</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="刀具标准库" delete="0" create="0" edit="0">
|
|
<field name="code" readonly="True"/>
|
|
<field name="name" readonly="True" string="型号名称"/>
|
|
<field name="cutting_tool_material_id"/>
|
|
<field name="cutting_tool_type_id"/>
|
|
<field name="brand_id"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_cutting_tool_standard_library_form" model="ir.ui.view">
|
|
<field name="name">sf.cutting_tool.standard.library.form</field>
|
|
<field name="model">sf.cutting_tool.standard.library</field>
|
|
<field name="arch" type="xml">
|
|
<form string="刀具标准库" delete="0" create="0" edit="0">
|
|
<sheet>
|
|
<field name="image" widget='image' class="oe_avatar"
|
|
options="{'zoom': true, 'preview_image':'image_128'}"/>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<field name="code"/>
|
|
</h1>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="name"/>
|
|
<field name="cutting_tool_material_id"/>
|
|
<field name="cutting_tool_type"/>
|
|
<field name="cutting_tool_type_id"/>
|
|
<field name="brand_id"/>
|
|
<label for="integral_run_out_accuracy_min" string="端跳精度"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<div class="o_address_format"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}">
|
|
<label for="integral_run_out_accuracy_min" string="最小"/>
|
|
<field name="integral_run_out_accuracy_min" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
<span>(mm)&nbsp;</span>
|
|
<label for="integral_run_out_accuracy_max" string="最大"/>
|
|
<field name="integral_run_out_accuracy_max" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
<span>(mm)&nbsp;</span>
|
|
</div>
|
|
<field name="cutter_bar_ids" widget="many2many_tags"
|
|
options="{'no_create': True}" search="[]"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
<field name="cutter_pad_ids" widget="many2many_tags"
|
|
options="{'no_create': True}" search="[]"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀片')]}"/>
|
|
</group>
|
|
<group>
|
|
<field name="material_model_id" placeholder="请选择" string="材质"
|
|
attrs="{'required': [('cutting_tool_type', 'not in', ['刀柄', '夹头'])]}"/>
|
|
<field name="tool_hardness" string="硬度(hrc)" options="{'format': false}"
|
|
widget="integer"/>
|
|
<field name="coating_material"/>
|
|
<field name="blade_type"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="integral_coarse_medium_fine" placeholder="请选择"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片'))]}"/>
|
|
</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="基本参数">-->
|
|
<!-- <field name="tool_materials_basic_parameters_ids">-->
|
|
<!-- <tree editable="bottom" class="center">-->
|
|
<!-- <field name="code"/>-->
|
|
<!-- <field name="total_length"/>-->
|
|
<!-- <field name="blade_diameter"/>-->
|
|
<!-- <field name="blade_length"/>-->
|
|
<!-- <field name="blade_number"/>-->
|
|
<!-- <field name="neck_length"/>-->
|
|
<!-- <field name="neck_diameter"/>-->
|
|
<!-- <field name="handle_length"/>-->
|
|
<!-- <field name="handle_diameter"/>-->
|
|
<!-- <field name="blade_tip_diameter"/>-->
|
|
<!-- <field name="blade_tip_working_size"/>-->
|
|
<!-- <field name="blade_tip_taper"/>-->
|
|
<!-- <field name="blade_helix_angle"/>-->
|
|
<!-- <field name="blade_width"/>-->
|
|
<!-- <field name="blade_depth"/>-->
|
|
<!-- <field name="pitch"/>-->
|
|
<!-- <field name="cutting_depth"/>-->
|
|
<!-- </tree>-->
|
|
<!-- </field>-->
|
|
<!-- </page>-->
|
|
<!-- <page string="切削速度Vc"-->
|
|
<!-- attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片'))]}">-->
|
|
<!-- <field name="cutting_speed_ids">-->
|
|
<!-- <tree editable="bottom" class="center">-->
|
|
<!-- <field name="execution_standard_id"/>-->
|
|
<!-- <field name="material_code"/>-->
|
|
<!-- <field name="material_name_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"-->
|
|
<!-- attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片'))]}">-->
|
|
<!-- <field name="feed_per_tooth_ids">-->
|
|
<!-- <tree editable="bottom" class="center">-->
|
|
<!-- <field name="cutting_speed"/>-->
|
|
<!-- <field name="machining_method"/>-->
|
|
<!-- <field name="materials_type_id"/>-->
|
|
<!-- <field name="blade_diameter"/>-->
|
|
<!-- <field name="feed_per_tooth"/>-->
|
|
<!-- <field name="unit"/>-->
|
|
<!-- </tree>-->
|
|
<!-- </field>-->
|
|
<!-- </page>-->
|
|
<!-- </notebook>-->
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_cutting_tool_standard_library_search" model="ir.ui.view">
|
|
<field name="name">sf.cutting_tool.standard.library.search</field>
|
|
<field name="model">sf.cutting_tool.standard.library</field>
|
|
<field name="arch" type="xml">
|
|
<search string="刀具标准库">
|
|
<field name="name" string="名称搜索" filter_domain="[('name','ilike',self)]"/>
|
|
<field name="code" string="编码搜索" filter_domain="[('code','ilike',self)]"/>
|
|
<filter name="filter_active" string="已归档" domain="[('active','=',False)]"/>
|
|
<searchpanel class="account_root">
|
|
<field name="cutting_tool_material_id" icon="fa-filter" enable_counters="1"/>
|
|
</searchpanel>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<!-- ================================================刀具类型================================================ -->
|
|
<record id="view_cutting_tool_type_tree" model="ir.ui.view">
|
|
<field name="name">sf.cutting.tool.type.tree</field>
|
|
<field name="model">sf.cutting.tool.type</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="刀具类型" create="0" edit="0" delete="1">
|
|
<field name="code"/>
|
|
<field name="name" string="名称"/>
|
|
<field name="cutting_tool_material_id"/>
|
|
<field name="remark"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- 刀具类型搜索 -->
|
|
<record id="view_cutting_tool_type_search" model="ir.ui.view">
|
|
<field name="name">sf.cutting.tool.type.search</field>
|
|
<field name="model">sf.cutting.tool.type</field>
|
|
<field name="arch" type="xml">
|
|
<search string="刀具类型">
|
|
<field name="name" string="名称搜索" filter_domain="[('name','ilike',self)]"/>
|
|
<field name="code" string="编码搜索" filter_domain="[('code','ilike',self)]"/>
|
|
<filter name="filter_active" string="已归档" domain="[('active','=',False)]"/>
|
|
<searchpanel class="account_root">
|
|
<field name="cutting_tool_material_id" icon="fa-filter"/>
|
|
</searchpanel>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
|
|
<!-- ================================================能力特征库================================================ -->
|
|
<record id="view_maintenance_equipment_image_tree" model="ir.ui.view">
|
|
<field name="name">maintenance.equipment.image.tree</field>
|
|
<field name="model">maintenance.equipment.image</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="能力特征库" editable="bottom" delete="0" create="0" >
|
|
<field name="name" readonly="1"/>
|
|
<field name="type" readonly="1"/>
|
|
<field name="image" widget="image" readonly="1"/>
|
|
<field name="equipment_id" />
|
|
<field name="active" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record model="ir.ui.view" id="view_maintenance_equipment_image_search">
|
|
<field name="name">maintenance.equipment.image.search</field>
|
|
<field name="model">maintenance.equipment.image</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="name"/>
|
|
<searchpanel class="account_root">
|
|
<field name="type" icon="fa-filter" enable_counters="1"/>
|
|
</searchpanel>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_maintenance_equipment_image" model="ir.actions.act_window">
|
|
<field name="name">能力特征库</field>
|
|
<field name="res_model">maintenance.equipment.image</field>
|
|
<field name="view_mode">tree</field>
|
|
<field name="domain">[]</field>
|
|
</record>
|
|
|
|
|
|
|
|
</odoo>
|