<?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}">
                                <list editable="bottom">
                                    <field name="name" decoration-bf="uom_type == 'reference'"/>
                                    <field name="uom_type" decoration-bf="uom_type == 'reference'"/>
                                    <field name="factor" column_invisible="True"/>
                                    <field name="factor_inv" column_invisible="True"/>
                                    <field name="ratio" string="Ratio" readonly="uom_type == 'reference'" digits="[42,5]"/>
                                    <field name="active"/>
                                    <field name="rounding" digits="[42, 5]"/>
                                </list>
                            </field>
                        </page>
                    </notebook>
                </sheet>
            </form>
        