Files
jikimo_sf/sf_machine_connect/views/SfWorkOrderBarcodes.xml
qihao.gong@jikimo.com 1a896a730e 拉取最新代码
2024-01-09 14:17:38 +08:00

24 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="sf_install_the_tray_workorder_form_view__scan_barcode" model="ir.ui.view">
<field name="name">sf.install.the.tray.workorder.form.scan.barcode</field>
<field name="model">mrp.workorder</field>
<!-- <field name="inherit_id" ref="sf_manufacturing.view_mrp_production_workorder_tray_form_inherit_sf"/> -->
<!-- <field name="arch" type="xml"> -->
<!-- <xpath expr="//page//field[@name='tray_code']" position="before"> -->
<!-- --><!-- invisible="1" -->
<!-- <field name="_barcode_scanned" widget="barcode_handler" string="扫码"/> -->
<!-- </xpath> -->
<field name="inherit_id" ref="sf_manufacturing.view_mrp_production_workorder_tray_form_inherit_sf"/>
<field name="arch" type="xml">
<xpath expr="//group//field[@name='processing_panel']" position="after">
<!-- invisible="1" -->
<field name="_barcode_scanned" widget="barcode_handler" string="扫码" attrs='{"invisible": [("routing_type","!=","装夹预调")]}'/>
</xpath>
<xpath expr="//page//field[@name='tray_code']" position="replace">
<field name="tray_code" widget="code"/>
</xpath>
</field>
</record>
</odoo>