<list multi_edit="1" sample="1" decoration-info="state == 'draft'">
                    <field name="company_id" column_invisible="True" readonly="state == 'done'"/>
                    <field name="product_uom_category_id" column_invisible="True"/>
                    <field name="name" decoration-bf="1"/>
                    <field name="date_done"/>
                    <field name="product_id" readonly="1"/>
                    <field name="scrap_qty" readonly="state == 'done'"/>
                    <field name="product_uom_id" groups="uom.group_uom" readonly="state == 'done'"/>
                    <field name="location_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations" readonly="state == 'done'"/>
                    <field name="scrap_location_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations" readonly="state == 'done'"/>
                    <field name="company_id" readonly="1" groups="base.group_multi_company"/>
                    <field name="state" widget="badge" decoration-success="state == 'done'" decoration-muted="state == 'draft'"/>
                </list>