1、测试功能刀具相关模型的注册接口并优化;2、功能刀具管理模块中的需要注册的模型前端页面添加注册按钮;

This commit is contained in:
yuxianghui
2024-03-07 17:20:43 +08:00
parent 71cb09c08b
commit 47692a9b43
4 changed files with 51 additions and 14 deletions

View File

@@ -40,6 +40,8 @@
<field name="arch" type="xml">
<form create="0" edit="0" delete="0">
<header>
<button name="enroll_functional_tool_entity" string="功能刀具注册" type="object"
class="btn-primary"/>
<field name="functional_tool_status" widget="statusbar" statusbar_visible="正常,报警,已拆除"/>
</header>
<sheet>
@@ -243,6 +245,8 @@
<field name="dispose_user"/>
<field name="dispose_time"/>
<field name="dispose_func"/>
<button name="enroll_functional_tool_warning" string="刀具预警注册" type="object"
class="btn-primary"/>
</tree>
</field>
</record>
@@ -318,6 +322,10 @@
<field name="model">sf.real.time.distribution.of.functional.tools</field>
<field name="arch" type="xml">
<form>
<header>
<button name="enroll_functional_tool_real_time_distribution" string="安全库存注册" type="object"
class="btn-primary"/>
</header>
<sheet>
<div class="oe_title">
<h1>
@@ -454,6 +462,7 @@
<field name="date"/>
<field name="qty_done" string="数量"/>
<field name="functional_tool_type_id" invisible="True"/>
<button name="enroll_functional_tool_move" string="安全库存注册" type="object" class="btn-primary"/>
</tree>
</field>
</record>

View File

@@ -22,6 +22,9 @@
<field name="model">sf.tool.material.search</field>
<field name="arch" type="xml">
<form string="刀具物料查询" create="0">
<header>
<button string="刀具物料注册" name="enroll_tool_material" type="object" class="btn-primary"/>
</header>
<sheet>
<div class="oe_title">
<h1>