新增功能夹具接口

This commit is contained in:
jinling.yang
2023-08-02 17:35:09 +08:00
parent 5c2e7c80da
commit 24afa53028
4 changed files with 18 additions and 184 deletions

View File

@@ -161,7 +161,7 @@
<field name="name">夹具型号</field>
<field name="model">sf.fixture.model</field>
<field name="arch" type="xml">
<tree string="夹具型号">
<tree string="夹具型号" create="0" edit="0" delete="0">
<field name="code"/>
<field name="name"/>
<field name="brand_id"/>
@@ -175,11 +175,7 @@
<field name="name">夹具型号</field>
<field name="model">sf.fixture.model</field>
<field name="arch" type="xml">
<form string="夹具型号">
<header>
<button type="object" class="oe_highlight" name='register_fixture_model' string="机床注册"
attrs="{'invisible': [('code','!=',False)]}"/>
</header>
<form string="夹具型号" create="0" edit="0" delete="0">
<sheet>
<group string="基本信息">
<group>

View File

@@ -94,6 +94,11 @@
<field name="model">sf.functional.fixture</field>
<field name="arch" type="xml">
<form string="功能夹具">
<header>
<field name="registration_status" invisible="1"/>
<button type="object" class="oe_highlight" name='register_functional_fixture' string="注册"
attrs="{'invisible': [('registration_status','=','已注册')]}"/>
</header>
<sheet>
<group string="基本信息">
<group>