~unifield-team/unifield-wm/us-826

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="utf-8" ?>
<openerp>
    <data>

        <record id="transport_view_shipment_form" model="ir.ui.view">
            <field name="name">transport.view.shipment.form</field>
            <field name="model">shipment</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="msf_outgoing.view_shipment_form" />
            <field name="arch" type="xml">
                <data>
            
                    <xpath expr="/form/notebook/page[@string='Transport Information']/group" position="before">
                        <group colspan="3" col="3">
                            <separator colspan="3" string="Transport Purchase Order" />
                            <field name="transport_order_id" colspan="3" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}" />
                        </group>
                        <newline />
                    </xpath>

                </data>
            </field>
        </record>

    </data>
</openerp>