<?xml version="1.0"?>
<data><!-- Nomenclature form -->
                <xpath expr="//field[@name='upc_ean_conv']" position="attributes">
                    <attribute name="attrs">{'invisible':[('is_gs1_nomenclature', '=', True)]}</attribute>
                </xpath>
                <xpath expr="//group[@name='general_attributes']" position="after">
                    <group name="gs1_attributes" col="4">
                        <field name="is_gs1_nomenclature"/>
                        <field name="gs1_separator_fnc1" attrs="{'invisible':[('is_gs1_nomenclature', '!=', True)]}"/>
                    </group>
                </xpath>
                <!-- Rules table -->
                <xpath expr="//field[@name='rule_ids']" position="attributes">
                    <attribute name="context">{'is_gs1': is_gs1_nomenclature}</attribute>
                </xpath>
                <xpath expr="//field[@name='encoding']" position="attributes">
                    <attribute name="attrs">{'column_invisible': [('parent.is_gs1_nomenclature', '=', True)]}</attribute>
                </xpath>
                <xpath expr="//field[@name='pattern']" position="after">
                    <field name="gs1_content_type" attrs="{'column_invisible': [('parent.is_gs1_nomenclature', '!=', True)]}"/>
                    <field name="gs1_decimal_usage" attrs="{'column_invisible': [('parent.is_gs1_nomenclature', '!=', True)], 'invisible': [('gs1_content_type', '!=', 'measure')]}"/>
                    <field name="associated_uom_id" attrs="{'column_invisible': [('parent.is_gs1_nomenclature', '!=', True)], 'invisible': [('gs1_content_type', '!=', 'measure')]}"/>
                </xpath>
            </data>