<?xml version="1.0"?>
<form string="Storage Category">
                <field name="company_id" invisible="1"/>
                <sheet>
                    <div class="oe_button_box" name="button_box">
                        <button name="570" string="Locations" type="action" class="oe_stat_button" icon="fa-arrows-v"/>
                    </div>
                    <group>
                        <group>
                            <field name="name"/>
                            <field name="allow_new_product"/>
                        </group>
                        <group>
                            <label for="max_weight"/>
                            <div class="o_row">
                                <field name="max_weight"/>
                                <span><field name="weight_uom_name"/></span>
                            </div>
                            <field name="company_id" groups="base.group_multi_company"/>
                        </group>
                    </group>
                    <notebook>
                        <page string="Capacity by Package" name="package_capacity" groups="stock.group_tracking_lot">
                            <field name="package_capacity_ids" context="{'default_storage_category_id': id, 'default_company_id': company_id}">
                                <tree editable="bottom">
                                    <field name="package_type_id" required="1"/>
                                    <field name="quantity"/>
                                    <field name="company_id" invisible="1"/>
                                </tree>
                            </field>
                        </page>
                        <page string="Capacity by Product" name="product_capacity">
                            <field name="product_capacity_ids" context="{'default_storage_category_id': id, 'default_company_id': company_id}">
                                <tree editable="bottom">
                                    <field name="product_id" required="1" context="{'default_detailed_type': 'product'}"/>
                                    <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"/>
                                </tree>
                            </field>
                        </page>
                    </notebook>
                </sheet>
            </form>
        