1、优化功能刀具预警记录跳转功能刀具拆解单链接方法;2、优化功能刀具预警界面及搜索等方法;3、优化拆解单功能及界面;4、处理功能刀具组装时,刀柄状态不实时变更问题
This commit is contained in:
@@ -803,7 +803,8 @@
|
||||
<group>
|
||||
<group>
|
||||
<field name="functional_tool_id" placeholder="请选择将要拆解的功能刀具"
|
||||
options="{'no_create': True}" attrs="{'readonly': [('state', '=', '已拆解')]}"/>
|
||||
options="{'no_create': True}"
|
||||
attrs="{'readonly': ['|',('state', '=', '已拆解'),('id', '!=', False)]}"/>
|
||||
<field name="rfid" attrs="{'invisible': [('rfid', '=', '')]}"/>
|
||||
<field name="rfid_dismantle" attrs="{'invisible': [('rfid_dismantle', '=', False)]}"/>
|
||||
<field name="tool_type_id"/>
|
||||
@@ -833,10 +834,26 @@
|
||||
<notebook>
|
||||
<page string="物料组装信息">
|
||||
<group>
|
||||
<group string="刀柄" attrs="{'invisible': [('handle_product_id', '=', False)]}">
|
||||
<group string="刀柄" attrs="{'invisible': [('handle_product_id', '=', False)]}"
|
||||
col="1">
|
||||
<group attrs="{'invisible': [('dismantle_cause', 'not in', ['寿命到期报废','崩刀报废'])]}">
|
||||
<group col="3">
|
||||
<group>
|
||||
<field name="scrap_boolean" string="是否报废"/>
|
||||
</group>
|
||||
<group> </group>
|
||||
<group>
|
||||
<button string="报废" name="tool_scrap" type="object"
|
||||
class="btn-primary" confirm="是否确认报废刀柄"
|
||||
attrs="{'invisible': [('scrap_boolean', '=', True)]}"/>
|
||||
<button string="取消" name="tool_no_scrap" type="object"
|
||||
class="btn-primary" confirm="是否取消报废刀柄"
|
||||
attrs="{'invisible': [('scrap_boolean', '=', False)]}"/>
|
||||
<group> </group>
|
||||
</group>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="scrap_boolean" string="是否报废"
|
||||
attrs="{'invisible': [('dismantle_cause', 'not in', ['寿命到期报废','崩刀报废'])], 'readonly': [('state', '=', '已拆解')]}"/>
|
||||
<field name="handle_rfid" string="Rfid"/>
|
||||
<field name="handle_lot_id" string="序列号"/>
|
||||
<field name="handle_product_id" string="名称"/>
|
||||
@@ -952,8 +969,9 @@
|
||||
<field name="model">sf.functional.tool.dismantle</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="rfid"/>
|
||||
<field name="functional_tool_id"/>
|
||||
<field name="code" string="拆解单编码"/>
|
||||
<field name="code" string="拆解单号"/>
|
||||
<filter name="no_dismantle_state" string="未拆解" domain="[('state','!=','已拆解')]"/>
|
||||
<filter name="dismantle_state" string="已拆解" domain="[('state','=','已拆解')]"/>
|
||||
<separator/>
|
||||
|
||||
Reference in New Issue
Block a user