新增同步mrs的表面工艺类别接口
This commit is contained in:
@@ -39,6 +39,59 @@
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!--表面工艺类别-->
|
||||
<record model="ir.ui.view" id="sf_production_process_category_form">
|
||||
<field name="model">sf.production.process.category</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="表面工艺类别">
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<field name="code" readonly="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="name" required="1"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="表面工艺">
|
||||
<field name='production_process_ids' widget="ony2many">
|
||||
<tree editable="bottom">
|
||||
<field name="process_encode" string="编码号" readonly="1" force_save="1"/>
|
||||
<field name="name" string="名称" required="1"/>
|
||||
<field name='category_id' default="default" invisible="1"/>
|
||||
<field name="remark"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="sf_production_process_category_tree">
|
||||
<field name="model">sf.production.process.category</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="表面工艺类别">
|
||||
<field name="code"/>
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="search_sf_production_process_category_view">
|
||||
<field name="name">search.sf.production.process.category</field>
|
||||
<field name="model">sf.production.process.category</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name" string="名称" filter_domain="[('name','ilike',self)]"/>
|
||||
<field name="code" string="编码" filter_domain="[('code','ilike',self)]"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!--表面工艺-->
|
||||
<record model="ir.ui.view" id="sf_production_process_tree">
|
||||
<field name="model">sf.production.process</field>
|
||||
@@ -95,8 +148,6 @@
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
|
||||
|
||||
</form>
|
||||
</field>
|
||||
</page>
|
||||
@@ -231,26 +282,6 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- <record model="ir.ui.view" id="sf_production_materials_form">-->
|
||||
<!-- <field name="model">sf.production.materials</field>-->
|
||||
<!-- <field name="arch" type="xml">-->
|
||||
<!-- <form string="材料">-->
|
||||
|
||||
<!-- <group string="详情">-->
|
||||
<!-- <group>-->
|
||||
<!-- <field name="materials_no" required="1" default="编码"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- <group>-->
|
||||
<!-- <field name="name" required="1"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- <field name="materials_model_ids">-->
|
||||
|
||||
<!-- </field>-->
|
||||
<!-- </group>-->
|
||||
<!-- </form>-->
|
||||
<!-- </field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<record id="sf_production_materials" model="ir.actions.act_window">
|
||||
<field name="name">材料</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
@@ -290,13 +321,24 @@
|
||||
<field name="res_model">sf.processing.technology</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="help" type="html">
|
||||
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
加工工艺!
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="sf_production_process_category" model="ir.actions.act_window">
|
||||
<field name="name">表面工艺类别</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">sf.production.process.category</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
表面工艺类别!
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
#------------------托盘------------------
|
||||
<record id="action_sf_tray" model="ir.actions.act_window">
|
||||
<field name="name">托盘</field>
|
||||
|
||||
@@ -63,6 +63,13 @@
|
||||
action="sf_production_process"
|
||||
/>
|
||||
|
||||
<menuitem
|
||||
id="menu_sf_production_process_category"
|
||||
name="表面工艺类别"
|
||||
parent="menu_sf_production_process_1"
|
||||
sequence="2"
|
||||
action="sf_production_process_category"
|
||||
/>
|
||||
|
||||
<menuitem
|
||||
id="menu_sf_production_materials"
|
||||
|
||||
Reference in New Issue
Block a user