<?xml version="1.0"?>
<form string="Barcode Rule">
                    <group>
                        <field name="name"/>
                        <field name="sequence"/>
                        <field name="type"/>  
                        <field name="encoding" attrs="{'invisible': [('type','=', 'alias')]}"/> 
                        <field name="pattern"/>
                        <field name="alias" attrs="{'invisible': [('type','!=', 'alias')]}"/>   
                    </group>
                </form>
            