1.选择规则,带出对应型号图片

2.规格弹出的页面隐藏刀具类型
3.型号新建弹出的页面图片字段去掉option设置,编码改为强制保存
This commit is contained in:
jinling.yang
2024-03-18 14:42:51 +08:00
parent 56dacd0815
commit e444e27cad
2 changed files with 3 additions and 3 deletions

View File

@@ -124,7 +124,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="规则"> <form string="规则">
<sheet> <sheet>
<field name="cutting_tool_type" invisible="0"/> <field name="cutting_tool_type" invisible="1"/>
<field name="standard_library_id" invisible="1"/> <field name="standard_library_id" invisible="1"/>
<group> <group>
<group attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}"> <group attrs="{'invisible': [('cutting_tool_type', '!=', '整体式刀具')]}">

View File

@@ -123,10 +123,10 @@
<form string="刀具标准库" delete="0" create="0" edit="0"> <form string="刀具标准库" delete="0" create="0" edit="0">
<sheet> <sheet>
<field name="image" widget='image' class="oe_avatar" <field name="image" widget='image' class="oe_avatar"
options="{'zoom': true, 'preview_image':'image_128'}" required="1"/> required="1"/>
<div class="oe_title"> <div class="oe_title">
<h1> <h1>
<field name="code" readonly="1"/> <field name="code" readonly="1" force_save="1"/>
</h1> </h1>
</div> </div>
<group> <group>