<?xml version="1.0"?>
<form string="Units of Measure">
                <sheet>
                    <group>
                         <group name="uom_details">
                             <field name="name"/>
                             <field name="category_id"/>
                             <field name="uom_type" readonly="1"/>
                             <label for="factor" invisible="uom_type != 'smaller'"/>
                            <div invisible="uom_type != 'smaller'">
                                <field name="factor" digits="[42,5]" readonly="uom_type == 'bigger'"/>
                                <span class="oe_grey oe_inline">
                                    e.g: 1*(reference unit)=ratio*(this unit)
                                </span>
                            </div>
                            <label for="factor_inv" invisible="uom_type != 'bigger'"/>
                            <div invisible="uom_type != 'bigger'">
                                <field name="factor_inv" digits="[42,5]" readonly="uom_type != 'bigger'"/>
                                <span class="oe_grey oe_inline">
                                    e.g: 1*(this unit)=ratio*(reference unit)
                                </span>
                            </div>
                         </group>
                         <group name="active_rounding">
                             <field name="active" widget="boolean_toggle"/>
                             <field name="rounding" digits="[42, 5]"/>
                         </group>
                     </group>
                </sheet>
            </form>
        