调整扫码widget

This commit is contained in:
mgw
2025-01-15 10:18:25 +08:00
parent eabe2aa9e9
commit ca3015600a
2 changed files with 26 additions and 97 deletions

View File

@@ -126,6 +126,9 @@
<field name="model">mrp.workorder</field>
<field name="inherit_id" ref="mrp.mrp_production_workorder_form_view_inherit"/>
<field name="arch" type="xml">
<form position="inside">
<field name="_barcode_scanned" widget="barcode_handler" invisible="1"/>
</form>
<!-- <xpath expr="//form" position="inside"> -->
<!-- <script src="sf_manufacturing/static/src/js/customRFID.js"/> -->
<!-- </xpath> -->
@@ -308,7 +311,7 @@
<xpath expr="//page[1]" position="before">
<page string="工件装夹" attrs='{"invisible": [("routing_type","!=","装夹预调")]}'>
<group>
<field name="_barcode_scanned" widget="barcode_handler"/>
<!-- <field name="_barcode_scanned" widget="barcode_handler"/> -->
<group string="托盘">
<field name="tray_serial_number" readonly="1" string="序列号"/>
</group>