<?xml version="1.0"?>
<form string="Units of Measure categories">
                <sheet>
                    <group>
                        <field name="name"/>
                        <field name="reference_uom_id" invisible="1"/>
                    </group>
                    <notebook>
                        <page string="Units of Measure" name="uom_lines">
                            <field name="uom_ids" force_save="1" context="{'default_uom_type': 'smaller', 'default_category_id': id}">
                                <tree editable="bottom">
                                    <field name="name" decoration-bf="uom_type == 'reference'"/>
                                    <field name="uom_type" decoration-bf="uom_type == 'reference'"/>
                                    <field name="factor" invisible="1"/>
                                    <field name="factor_inv" invisible="1"/>
                                    <field name="ratio" string="Ratio" attrs="{'readonly': [('uom_type', '=', 'reference')]}" digits="[42,5]"/>
                                    <field name="active"/>
                                    <field name="rounding" digits="[42, 5]"/>
                                </tree>
                            </field>
                        </page>
                    </notebook>
                </sheet>
            </form>
        