396 lines
26 KiB
XML
396 lines
26 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 id="view_cutting_tool_material_form" model="ir.ui.view">-->
|
|
<!-- <field name="name">sf.cutting.tool.material.form</field>-->
|
|
<!-- <field name="model">sf.cutting.tool.material</field>-->
|
|
<!-- <field name="arch" type="xml">-->
|
|
<!-- <form string="刀具物料">-->
|
|
<!-- <sheet>-->
|
|
<!-- <group col='1'>-->
|
|
<!-- <group string='基本信息'>-->
|
|
<!-- <group>-->
|
|
<!-- <field name="code"/>-->
|
|
<!-- <field name="name"/>-->
|
|
<!-- </group>-->
|
|
<!-- <group>-->
|
|
<!-- <field name="remark"/>-->
|
|
<!-- </group>-->
|
|
|
|
<!-- </group>-->
|
|
<!-- </group>-->
|
|
<!-- </sheet>-->
|
|
<!-- </form>-->
|
|
<!-- </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 id="view_cutter_function_form" model="ir.ui.view">-->
|
|
<!-- <field name="name">sf.cutter.function.form</field>-->
|
|
<!-- <field name="model">sf.functional.cutting.tool.model</field>-->
|
|
<!-- <field name="arch" type="xml">-->
|
|
<!-- <form string="功能刀具类型">-->
|
|
<!-- <sheet>-->
|
|
<!-- <group string="功能刀具类型">-->
|
|
<!-- <group>-->
|
|
<!-- <field name="code"/>-->
|
|
<!-- <field name="name"/>-->
|
|
<!-- </group>-->
|
|
<!-- <group>-->
|
|
<!-- <field name="remark"/>-->
|
|
<!-- </group>-->
|
|
<!-- </group>-->
|
|
<!-- </sheet>-->
|
|
<!-- </form>-->
|
|
<!-- </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_model_tree" model="ir.ui.view">
|
|
<field name="name">sf.cutting.tool.model.tree</field>
|
|
<field name="model">sf.cutting.tool.model</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="刀具型号" edit="0" delete="0" create="1">
|
|
<field name="code"/>
|
|
<field name="name" string="名称"/>
|
|
<field name="cutting_tool_material_id"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_cutting_tool_model_form" model="ir.ui.view">
|
|
<field name="name">sf.cutting.tool.model.form</field>
|
|
<field name="model">sf.cutting.tool.model</field>
|
|
<field name="arch" type="xml">
|
|
<form string="刀具型号" edit="0" delete="0" create="1">
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<field name="code"/>
|
|
</h1>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="name" string="名称"/>
|
|
<field name="cutting_tool_material_id"
|
|
options="{'no_create': True, 'no_quick_create': True}"/>
|
|
<field name="cutting_tool_type" invisible="1"/>
|
|
</group>
|
|
<!-- <group>-->
|
|
<!-- <field name="image" nolabel="1" widget="image"/>-->
|
|
<!-- </group>-->
|
|
</group>
|
|
<notebook>
|
|
<page string="参数"
|
|
attrs="{'invisible': [('cutting_tool_type', '=', False)]}">
|
|
<group>
|
|
<!--整体式刀具-->
|
|
<group>
|
|
<field name="brand_id"/>
|
|
<field name="cutting_tool_type_id" />
|
|
<field name="material_model_id"/>
|
|
<field name="total_length"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀柄'))]}"/>
|
|
<field name="shank_length"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<field name="blade_length"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"/>
|
|
<!--刀片-->
|
|
<label for="tool_length" string="尺寸(mm)"
|
|
attrs='{"invisible": [("cutting_tool_type","not in",("刀片","刀杆","刀盘"))]}'/>
|
|
<div class="test_model"
|
|
attrs='{"invisible": [("cutting_tool_type","not in",("刀片","刀杆","刀盘"))]}'>
|
|
<label for="tool_length" string="长"/>
|
|
<field name="tool_length" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
<label for="tool_width" string="宽"/>
|
|
<field name="tool_width" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
<label for="tool_thickness" string="厚"/>
|
|
<field name="tool_thickness" class="o_address_zip"
|
|
options="{'format': false}"/>
|
|
</div>
|
|
<field name="diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片','刀杆','刀盘'))]}"/>
|
|
<field name="blade_diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
<field name="blade_number"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片','刀杆','刀盘'))]}"/>
|
|
<field name="diameter_max"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="flange_length"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="flange_diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<!--夹头-->
|
|
<field name="outer_diameter"
|
|
attrs='{"invisible": [("cutting_tool_type","!=","夹头")]}'/>
|
|
<field name="inner_diameter"
|
|
attrs='{"invisible": [("cutting_tool_type","!=","夹头")]}'/>
|
|
<field name="tool_height"
|
|
attrs='{"invisible": [("cutting_tool_type","!=","夹头")]}'/>
|
|
<field name="tool_weight"
|
|
attrs='{"invisible": [("cutting_tool_type","not in",("夹头","刀柄"))]}'/>
|
|
<field name="clamping_diameter"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('夹头','刀柄'))]}"/>
|
|
<field name="cutter_bar_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片'))]}"/>
|
|
<field name="cutter_pad_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀片'))]}"/>
|
|
<field name="blade_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘'))]}"/>
|
|
<field name="chuck_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('刀杆','刀盘','刀柄','整体式刀具'))]}"/>
|
|
<field name="handle_ids" widget="many2many_tags"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('夹头'))]}"/>
|
|
</group>
|
|
<group>
|
|
<field name="jump_accuracy"
|
|
attrs="{'invisible': [('cutting_tool_type', '!=', '刀柄')]}"/>
|
|
<field name="front_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片'))]}"/>
|
|
<field name="top_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片'))]}"/>
|
|
<field name="rear_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片'))]}"/>
|
|
<field name="main_included_angle"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片'))]}"/>
|
|
<field name="coating_material"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片'))]}"/>
|
|
<field name="accuracy_level"
|
|
attrs="{'invisible': [('cutting_tool_type', '=', '刀柄')]}"/>
|
|
<field name="working_hardness"/>
|
|
<field name="wrench"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('夹头','刀柄','刀杆','刀盘' ))]}"/>
|
|
<field name="screw"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('夹头','刀柄'))]}"/>
|
|
<field name="nut"
|
|
attrs="{'invisible': [('cutting_tool_type', 'not in', ('整体式刀具','刀片'))]}"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- 刀具型号搜索 -->
|
|
<record id="view_cutting_tool_model_search" model="ir.ui.view">
|
|
<field name="name">sf.cutting.tool.model.search</field>
|
|
<field name="model">sf.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)]"/>
|
|
<searchpanel class="account_root">
|
|
<field name="cutting_tool_material_id" icon="fa-filter"/>
|
|
</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_form" model="ir.ui.view">-->
|
|
<!-- <field name="name">sf.cutting.tool.type.form</field>-->
|
|
<!-- <field name="model">sf.cutting.tool.type</field>-->
|
|
<!-- <field name="arch" type="xml">-->
|
|
<!-- <form string="刀具类型">-->
|
|
<!-- <sheet>-->
|
|
<!-- <group string="刀具类型">-->
|
|
<!-- <group>-->
|
|
<!-- <field name="code"/>-->
|
|
<!-- <field name="name"/>-->
|
|
<!-- <field name="mrs_cutting_tool_material_id" options="{'no_create': True, 'no_quick_create': True}"/>-->
|
|
<!-- </group>-->
|
|
<!-- <group>-->
|
|
<!-- <field name="remark"/>-->
|
|
<!-- </group>-->
|
|
<!-- </group>-->
|
|
<!-- </sheet>-->
|
|
<!-- </form>-->
|
|
<!-- </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>
|
|
</odoo>
|