1.产品模板优化:增加产品类别的搜索面板

2.夹具型号注册到cloud:夹具型号的Tree和form视图去掉不可增删改操作,页面新增时编码根据夹具物料回显不同的编码;新增注册按钮及对应的注册接口
3.功能夹具注册到cloud:.功能夹具的Tree和form视图去掉不可增删改操作,页面新增时编码和名称根据功能夹具类型和对应的托盘型号所进行回显
This commit is contained in:
jinling.yang
2023-08-01 17:39:40 +08:00
parent f6e50161c6
commit 5c2e7c80da
7 changed files with 336 additions and 37 deletions

View File

@@ -81,7 +81,7 @@
<field name="name">功能夹具</field>
<field name="model">sf.functional.fixture</field>
<field name="arch" type="xml">
<tree string="功能夹具" create="0" edit="0" delete="0">
<tree string="功能夹具">
<field name="code"/>
<field name="name"/>
<field name="type_id"/>
@@ -93,7 +93,7 @@
<field name="name">功能夹具</field>
<field name="model">sf.functional.fixture</field>
<field name="arch" type="xml">
<form string="功能夹具" create="0" edit="0" delete="0">
<form string="功能夹具">
<sheet>
<group string="基本信息">
<group>
@@ -101,15 +101,19 @@
<field name="name"/>
<field name="type_id"/>
<field name="type" invisible="1"/>
<field name="zero_chuck_model_ids" widget="many2many_tags"/>
<field name="zero_chuck_model_ids" widget="many2many_tags" options="{'no_create': True}"/>
<field name="transfer_tray_model_ids" widget="many2many_tags"
attrs="{'invisible': [('type', '!=', '转接板(锁板)式')]}"/>
options="{'no_create': True}"
attrs='{"invisible": [("type","!=","转接板(锁板)式")],"required": [("type", "=", "转接板(锁板)式")]}'/>
<field name="pneumatic_tray_model_ids" widget="many2many_tags"
attrs="{'invisible': [('type', '!=', '气动式')]}"/>
options="{'no_create': True}"
attrs='{"invisible": [("type","!=","气动式")],"required": [("type", "=", "气动式")]}'/>
<field name="magnetic_tray_model_ids" widget="many2many_tags"
attrs="{'invisible': [('type', '!=', '磁吸式')]}"/>
options="{'no_create': True}"
attrs='{"invisible": [("type","!=","磁吸式")],"required": [("type", "=", "磁吸式")]}'/>
<field name="vice_tray_model_ids" widget="many2many_tags"
attrs="{'invisible': [('type', '!=', '虎钳式')]}"/>
options="{'no_create': True}"
attrs='{"invisible": [("type","!=","虎钳式")],"required": [("type", "=", "虎钳式")]}'/>
</group>
</group>
</sheet>