<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="sf_tray_form_inherit" model="ir.ui.view">
            <field name="name">托盘条形码生成</field>
            <field name="model">sf.tray</field>
            <field name="inherit_id" ref="sf_base.sf_tray_form"/>
            <field name="arch" type="xml">
                <xpath expr="//group[@name='group1']" position="after">
                    <notebook>
                        <page string="生成条形码">
                            <field name='qr_image' widget="image"/>
                            <group>
                                <field name='production_id' readonly="1"
                                       attrs='{"invisible": [("production_id","=",False)]}'/>
                                <field name="workorder_id"/>
                            </group>
                             <div class="col
                             -12 col-lg-6 o_setting_box">
                                <button type="object" class="oe_highlight" name="unclamp" string="解除装夹"
                               attrs='{"invisible": [("state","=","空闲")]}'/>
                            </div>

                        </page>

                    </notebook>
                </xpath>
            </field>
        </record>
    </data>
</odoo>