272 lines
14 KiB
XML
272 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record model="ir.actions.act_window" id="mrp_workorder_action_tablet">
|
|
<field name="name">Work Orders</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">mrp.workorder</field>
|
|
<field name="view_mode">kanban,tree,form</field>
|
|
<field name="view_ids" eval="[(5, 0, 0),
|
|
(0, 0, {'view_mode': 'kanban', 'view_id': ref('mrp.workcenter_line_kanban')}),
|
|
(0, 0, {'view_mode': 'tree', 'view_id': ref('mrp.mrp_production_workorder_tree_editable_view')}) ]"/>
|
|
<field name="target">fullscreen</field>
|
|
<field name="domain">[('state', 'not in', ['done', 'cancel'])]</field>
|
|
<field name="context">{'search_default_workcenter_id': active_id}</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_workorder">
|
|
No work orders to do!
|
|
</p><p>
|
|
Work orders are operations to do as part of a manufacturing order.
|
|
Operations are defined in the bill of materials or added in the manufacturing order directly.
|
|
</p><p>
|
|
Use the table work center control panel to register operations in the shop floor directly.
|
|
The tablet provides worksheets for your workers and allow them to scrap products, track time,
|
|
launch a maintenance request, perform quality tests, etc.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="sf_install_the_tray_workorder_form_view" model="ir.ui.view">
|
|
<field name="name">装夹工序工单</field>
|
|
<field name="model">mrp.workorder</field>
|
|
<field name="inherit_id" ref="mrp.mrp_production_workorder_form_view_inherit"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page[last()]" position="after">
|
|
<page string="获取CNC加工程序" attrs='{"invisible": [("routing_type","!=","获取CNC加工程序")]}'>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<button type="object" class="oe_highlight" name="fetchCNC" string="获取CNC程序代码"
|
|
|
|
/>
|
|
</div>
|
|
</page>
|
|
|
|
</xpath>
|
|
<xpath expr="//page[last()]" position="after" >
|
|
<page string="装夹托盘" attrs='{"invisible": [("routing_type","!=","装夹")]}'>
|
|
<group >
|
|
|
|
<field name="routing_type" invisible="1"/>
|
|
<field name="processing_panel" readonly = "1" />
|
|
<field name="tray_code"/>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<button type="object" class="oe_highlight" name="gettray" string="绑定托盘"
|
|
attrs='{"invisible": [("production_id","=",False)]}'
|
|
/>
|
|
</div>
|
|
|
|
</group>
|
|
</page>
|
|
|
|
</xpath>
|
|
<xpath expr="//page[last()]" position="after">
|
|
|
|
<page string="三元前置检测定位参数" attrs='{"invisible": [("routing_type","!=","前置三元定位检测")]}'>
|
|
<group>
|
|
<group>
|
|
<field name="processing_panel" readonly = "1"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
<group>
|
|
<div>左面:</div>
|
|
<div></div>
|
|
<div class="o_address_format">
|
|
<label for="X1_axis" string="x1"/>
|
|
<field name='X1_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y1_axis" string="y1"/>
|
|
<field name='Y1_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z1_axis" string="z1"/>
|
|
<field name='Z1_axis' class="o_address_zip"/>
|
|
</div>
|
|
<div class="o_address_format">
|
|
<label for="X2_axis" string="x2"/>
|
|
<field name='X2_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y2_axis" string="y2"/>
|
|
<field name='Y2_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z2_axis" string="z2"/>
|
|
<field name='Z2_axis' class="o_address_zip"/>
|
|
</div>
|
|
<div>前面:</div>
|
|
<div></div>
|
|
<div class="o_address_format">
|
|
<label for="X3_axis" string="x1"/>
|
|
<field name='X3_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y3_axis" string="y1"/>
|
|
<field name='Y3_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z3_axis" string="z1"/>
|
|
<field name='Z3_axis' class="o_address_zip"/>
|
|
</div>
|
|
<div class="o_address_format">
|
|
<label for="X4_axis" string="x2"/>
|
|
<field name='X4_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y4_axis" string="y2"/>
|
|
<field name='Y4_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z4_axis" string="z2"/>
|
|
<field name='Z4_axis' class="o_address_zip"/>
|
|
</div>
|
|
<div>右面:</div>
|
|
<div></div>
|
|
<div class="o_address_format">
|
|
<label for="X5_axis" string="x1"/>
|
|
<field name='X5_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y5_axis" string="y1"/>
|
|
<field name='Y5_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z5_axis" string="z1"/>
|
|
<field name='Z5_axis' class="o_address_zip"/>
|
|
</div>
|
|
<div class="o_address_format">
|
|
<label for="X6_axis" string="x2"/>
|
|
<field name='X6_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y6_axis" string="y2"/>
|
|
<field name='Y6_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z6_axis" string="z2"/>
|
|
<field name='Z6_axis' class="o_address_zip"/>
|
|
</div>
|
|
<div>后面:</div>
|
|
<div></div>
|
|
<div class="o_address_format">
|
|
<label for="X7_axis" string="x1"/>
|
|
<field name='X7_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y7_axis" string="y1"/>
|
|
<field name='Y7_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z7_axis" string="z1"/>
|
|
<field name='Z7_axis' class="o_address_zip"/>
|
|
</div>
|
|
<div class="o_address_format">
|
|
<label for="X8_axis" string="x2"/>
|
|
<field name='X8_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y8_axis" string="y2"/>
|
|
<field name='Y8_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z8_axis" string="z2"/>
|
|
<field name='Z8_axis' class="o_address_zip"/>
|
|
</div>
|
|
<div>上面:</div>
|
|
<div></div>
|
|
<div class="o_address_format">
|
|
<label for="X9_axis" string="x1"/>
|
|
<field name='X9_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y9_axis" string="y1"/>
|
|
<field name='Y9_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z9_axis" string="z1"/>
|
|
<field name='Z9_axis' class="o_address_zip"/>
|
|
</div>
|
|
<div class="o_address_format">
|
|
<label for="X10_axis" string="x2"/>
|
|
<field name='X10_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Y10_axis" string="y2"/>
|
|
<field name='Y10_axis' class="o_address_zip"/>
|
|
<span>&nbsp;</span>
|
|
<label for="Z10_axis" string="z2"/>
|
|
<field name='Z10_axis' class="o_address_zip"/>
|
|
</div>
|
|
|
|
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<button type="object" class="oe_highlight" name="getcenter" string="计算定位"
|
|
/>
|
|
</div>
|
|
|
|
|
|
</group>
|
|
<group>
|
|
<field name="material_center_point"/>
|
|
<field name='X_deviation_angle'/>
|
|
</group>
|
|
|
|
</page>
|
|
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//page[last()]" position="after">
|
|
<page string="CNC程序" attrs='{"invisible": [("routing_type","!=","CNC加工")]}'>
|
|
|
|
|
|
<field name="cnc_ids" widget="one2many">
|
|
<tree>
|
|
<field name="cnc_id"/>
|
|
<field name="FNo" />
|
|
<field name="FPGName" />
|
|
<field name="FKnifeName" />
|
|
<field name="FDNo" />
|
|
<field name="FWorkType" />
|
|
<field name="FXY" />
|
|
<field name="FZ" />
|
|
<field name="FJGSD" />
|
|
<field name="FSCCD" />
|
|
<field name="FDJSpec" />
|
|
<field name="FJGDate" />
|
|
<field name="FComment" />
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//page[last()]" position="after">
|
|
<page string="后置三元检测" attrs='{"invisible": [("routing_type","!=","后置三元质量检测")]}'>
|
|
<group>
|
|
<field name="test_results" widget="radio"/>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<button type="object" class="oe_highlight" name="recreateWorkerOrder" string="重新生成工单"
|
|
attrs='{"invisible": [("test_results","!=","返工")]}'
|
|
/>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<button type="object" class="oe_highlight" name="recreateManufacturing" string="重新生成制造订单"
|
|
attrs='{"invisible": [("test_results","!=","报废")]}'
|
|
/>
|
|
</div>
|
|
|
|
</group>
|
|
</page>
|
|
|
|
</xpath>
|
|
<xpath expr="//page[last()]" position="after">
|
|
<page string="解除装夹" attrs='{"invisible": [("routing_type","!=","解除装夹")]}' >
|
|
<group>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<button type="object" class="oe_highlight" name="unbindtray" string="解除装夹"
|
|
|
|
/>
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<button type="action" class="oe_highlight" name="sf_route_workcenter.label_sf_tray_code1" string="打印标签"
|
|
|
|
/>
|
|
</div>
|
|
</group>
|
|
|
|
|
|
</page>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo> |