<?xml version="1.0"?>
<tree decoration-danger="state != 'done' and quantity_done &gt; reserved_availability and show_reserved_availability" decoration-muted="scrapped == True or state == 'cancel' or (state == 'done' and is_locked == True)" string="Stock Moves" editable="bottom">
                    <field name="company_id" invisible="1"/>
                    <field name="name" invisible="1"/>
                    <field name="date" invisible="1"/>
                    <field name="state" invisible="1" readonly="0"/>
                    <field name="picking_type_id" invisible="1"/>
                    <field name="location_id" invisible="1"/>
                    <field name="location_dest_id" invisible="1"/>
                    <field name="scrapped" invisible="1"/>
                    <field name="picking_code" invisible="1"/>
                    <field name="product_type" invisible="1"/>
                    <field name="show_details_visible" invisible="1"/>
                    <field name="show_reserved_availability" invisible="1"/>
                    <field name="show_operations" invisible="1" readonly="1"/>
                    <field name="additional" invisible="1"/>
                    <field name="move_lines_count" invisible="1"/>
                    <field name="is_locked" invisible="1"/>
                    <field name="product_uom_category_id" invisible="1"/>
                    <field name="product_id" required="1" attrs="{'readonly': ['|', '&amp;', ('state', '!=', 'draft'), ('additional', '=', False), ('move_lines_count', '&gt;', 0)]}"/>
                    <field name="is_initial_demand_editable" invisible="1"/>
                    <field name="is_quantity_done_editable" invisible="1"/>
                    <field name="product_uom_qty" string="Demand" attrs="{'readonly': [('is_initial_demand_editable', '=', False)]}"/>
                    <field name="reserved_availability" string="Reserved"/>
                    <field name="quantity_done" string="Done" attrs="{'readonly': [('is_quantity_done_editable', '=', False)]}"/>
                    <field name="product_uom" attrs="{'readonly': [('state', '!=', 'draft'), ('id', '!=', False)]}" options="{'no_open': True, 'no_create': True}" string="Unit of Measure" groups="uom.group_uom"/>
                </tree>
            