@ -9,13 +9,13 @@
<field name= "arch" type= "xml" >
<field name= "arch" type= "xml" >
<data >
<data >
<xpath expr= "//field[@name='firstname']" position= "attributes" >
<xpath expr= "//field[@name='firstname']" position= "attributes" >
<attribute name= "attrs" > {'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False)]}</attribute>
<attribute name= "attrs" > {'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact') ]}</attribute>
</xpath>
</xpath>
<xpath expr= "//field[@name='lastname']" position= "attributes" >
<xpath expr= "//field[@name='lastname']" position= "attributes" >
<attribute name= "attrs" > {'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False)]}</attribute>
<attribute name= "attrs" > {'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact') ]}</attribute>
</xpath>
</xpath>
<xpath expr= "//field[@name='lastname']" position= "after" >
<xpath expr= "//field[@name='lastname']" position= "after" >
<field name= "lastname2" attrs= "{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False)]}" />
<field name= "lastname2" attrs= "{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False), ('type', '=', 'contact') ]}" />
</xpath>
</xpath>
</data>
</data>
</field>
</field>
@ -28,24 +28,24 @@
<data >
<data >
<!-- Main form -->
<!-- Main form -->
<xpath expr= "//field[@name='firstname']" position= "attributes" >
<xpath expr= "//field[@name='firstname']" position= "attributes" >
<attribute name= "attrs" > {'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False)]}</attribute>
<attribute name= "attrs" > {'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact') ]}</attribute>
</xpath>
</xpath>
<xpath expr= "//field[@name='lastname']" position= "attributes" >
<xpath expr= "//field[@name='lastname']" position= "attributes" >
<attribute name= "attrs" > {'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False)]}</attribute>
<attribute name= "attrs" > {'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact') ]}</attribute>
</xpath>
</xpath>
<xpath expr= "//field[@name='lastname']" position= "after" >
<xpath expr= "//field[@name='lastname']" position= "after" >
<field name= "lastname2" attrs= "{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False)]}" />
<field name= "lastname2" attrs= "{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False), ('type', '=', 'contact') ]}" />
</xpath>
</xpath>
<!-- Inner contact form of child_ids -->
<!-- Inner contact form of child_ids -->
<xpath expr= "//field[@name='child_ids']/form//field[@name='firstname']" position= "attributes" >
<xpath expr= "//field[@name='child_ids']/form//field[@name='firstname']" position= "attributes" >
<attribute name= "attrs" > {'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False)]}</attribute>
<attribute name= "attrs" > {'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact') ]}</attribute>
</xpath>
</xpath>
<xpath expr= "//field[@name='child_ids']/form//field[@name='lastname']" position= "attributes" >
<xpath expr= "//field[@name='child_ids']/form//field[@name='lastname']" position= "attributes" >
<attribute name= "attrs" > {'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False)]}</attribute>
<attribute name= "attrs" > {'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact') ]}</attribute>
</xpath>
</xpath>
<xpath expr= "//field[@name='child_ids']/form//field[@name='lastname']" position= "after" >
<xpath expr= "//field[@name='child_ids']/form//field[@name='lastname']" position= "after" >
<field name= "lastname2" attrs= "{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False)]}" />
<field name= "lastname2" attrs= "{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False), ('type', '=', 'contact') ]}" />
</xpath>
</xpath>
</data>
</data>
</field>
</field>