修改机床注册接口
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
<field name="machine_tool_picture" widget="image"/>
|
||||
<label for="enroll_machine_tool"/>
|
||||
<div class="col-12 col-lg-6 o_setting_box" style="white-space: nowrap">
|
||||
<button type="object" class="oe_highlight" name='enroll_machine_tool' string="机床注册"/>
|
||||
<button type="object" class="oe_highlight" name='enroll_machine_tool' string="机床注册" attrs="{'invisible': [('equipment_type', '!=', '机床'), ('brand_id','!=',False),('type_id','!=',False),('control_system_id','!=',False)]}"/>
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='category_id']" position="after">
|
||||
@@ -128,9 +128,7 @@
|
||||
</div>
|
||||
<field name="workpiece_load"
|
||||
attrs="{'required': [('equipment_type', '=', '机床')]}"/>
|
||||
<field name="number_of_knife_library"
|
||||
attrs="{'required': [('equipment_type', '=', '机床')]}"
|
||||
options="{'format': false}"/>
|
||||
|
||||
<field name="lead_screw" attrs="{'required': [('equipment_type', '=', '机床')]}"/>
|
||||
<field name="number_of_axles"
|
||||
attrs="{'required': [('equipment_type', '=', '机床')]}"
|
||||
@@ -209,6 +207,9 @@
|
||||
</group>
|
||||
</div>
|
||||
<group string="刀具">
|
||||
<field name="number_of_knife_library"
|
||||
attrs="{'required': [('equipment_type', '=', '机床')]}"
|
||||
options="{'format': false}"/>
|
||||
<field name="knife_type" attrs="{'required': [('equipment_type', '=', '机床')]}"/>
|
||||
<field name="tool_speed" attrs="{'required': [('equipment_type', '=', '机床')]}"/>
|
||||
<field name="tool_long_max"
|
||||
|
||||
Reference in New Issue
Block a user