完成了机台换刀申请的换刀申请按键弹窗数据同步回机台换刀申请界面以及转移按键界面、CAM工单程序用刀计划的申请装刀界面
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<!--================================================换刀需求信息================================================-->
|
||||
<record id="sf_tool_change_requirement_information_form" model="ir.ui.view">
|
||||
<field name="name">换刀需求信息</field>
|
||||
<field name="model">sf.tool.change.requirement.information</field>
|
||||
@@ -54,4 +55,126 @@
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
|
||||
<!--================================================刀具转移申请信息================================================-->
|
||||
<record id="sf_tool_transfer_request_information_form" model="ir.ui.view">
|
||||
<field name="name">刀具转移申请信息</field>
|
||||
<field name="model">sf.tool.transfer.request.information</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="刀具转移申请信息">
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<group>
|
||||
<field name="CNC_machine_table"/>
|
||||
<field name="functional_tool_code" string="刀具编码"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="machine_tool_code"/>
|
||||
<field name="functional_tool_name" string="刀具名称"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="cutter_spacing_code"/>
|
||||
<field name="functional_tool_type" string="刀具类型"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group>
|
||||
<field name="transfer_target" widget="radio"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group>
|
||||
<group>
|
||||
<field name="new_cnc_machine_table" attrs="{'readonly': [('transfer_target', '!=', '机台')]}"/>
|
||||
<field name="new_machine_tool_code" attrs="{'readonly': [('transfer_target', '!=', '机台')]}"/>
|
||||
<field name="new_cutter_spacing_code" attrs="{'readonly': [('transfer_target', '!=', '机台')]}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="magazine_tool_warehouse_district" attrs="{'readonly': [('transfer_target', '!=', '线边刀库')]}"/>
|
||||
<field name="magazine_tool_warehouse_position" attrs="{'readonly': [('transfer_target', '!=', '线边刀库')]}"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="tool_room_warehouse_district" attrs="{'readonly': [('transfer_target', '!=', '刀具房')]}"/>
|
||||
<field name="tool_room_warehouse_position" attrs="{'invisible': [('transfer_target', '!=', '刀具房')]}"/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
<footer>
|
||||
<button string="确定" name="tool_transfer_apply" type="object" class="btn-primary" confirm="是否确认刀具转移申请"/>
|
||||
<button string="取消" class="btn-secondary" special="cancel"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="sf_tool_transfer_request_information_act" model="ir.actions.act_window">
|
||||
<field name="name">刀具转移申请信息</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">sf.tool.transfer.request.information</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="sf_tool_transfer_request_information_form"/>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
|
||||
<!--================================================申请装刀================================================-->
|
||||
<record id="sf_apply_for_tooling_form" model="ir.ui.view">
|
||||
<field name="name">申请装刀</field>
|
||||
<field name="model">sf.apply.for.tooling</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="申请装刀">
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<field name="ticket_task_code" string="工单编号"/>
|
||||
<field name="machine_table_name" string="CAM指定机床"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="cam_procedure_code" string="CAM程序编号"/>
|
||||
<field name="cam_cutter_spacing_code" string="CAM指定刀位号"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<group>
|
||||
<group>
|
||||
<field name="diameter" string="直径"/>
|
||||
<field name="tool_included_angle"/>
|
||||
<field name="whether_standard_tool"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="tool_loading_length" string="刀尖角"/>
|
||||
<field name="L_D"/>
|
||||
<field name="need_knife_time"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="clearance_length"/>
|
||||
<field name="coarse_middle_thin"/>
|
||||
<field name="required_cutting_time" string="需切削时长"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="reason_for_applying"/>
|
||||
</group>
|
||||
</sheet>
|
||||
<footer>
|
||||
<button string="确定" name="apply_for_tooling" type="object" class="btn-primary" confirm="是否确认申请装刀"/>
|
||||
<button string="取消" class="btn-secondary" special="cancel"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="sf_apply_for_tooling_act" model="ir.actions.act_window">
|
||||
<field name="name">申请装刀</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">sf.apply.for.tooling</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="sf_apply_for_tooling_form"/>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user