1.选择规则,带出对应型号图片
2.规格弹出的页面隐藏刀具类型 3.型号新建弹出的页面图片字段去掉option设置,编码改为强制保存
This commit is contained in:
@@ -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', '!=', '整体式刀具')]}">
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user