<?xml version="1.0"?>
<tree string="Storage Category Capacity" multi_edit="1" editable="bottom">
                <field name="storage_category_id"/>
                <field name="product_id" invisible="context.get('default_product_id')" attrs="{'required': [('package_type_id', '=', False)], 'readonly': [('package_type_id', '!=', False)]}"/>
                <field name="package_type_id" attrs="{'required': [('product_id', '=', False)], 'readonly': [('product_id', '!=', False)]}" invisible="context.get('hide_package_type', False)" groups="stock.group_tracking_lot"/>
                <field name="quantity"/>
                <field name="product_uom_id" groups="uom.group_uom" options="{'no_create': True, 'no_open': True}"/>
                <field name="company_id" invisible="1"/>
                <field name="package_type_id" invisible="1"/>
            </tree>
        