|
@ -7,17 +7,15 @@ |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="inherit_id" ref="partner_firstname.view_partner_simple_form_firstname"/> |
|
|
<field name="inherit_id" ref="partner_firstname.view_partner_simple_form_firstname"/> |
|
|
<field name="arch" type="xml"> |
|
|
<field name="arch" type="xml"> |
|
|
<data> |
|
|
|
|
|
<xpath expr="//field[@name='firstname']" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//field[@name='lastname']" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//field[@name='lastname']" position="after"> |
|
|
|
|
|
<field name="lastname2" attrs="{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}"/> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
</data> |
|
|
|
|
|
|
|
|
<field name="firstname" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</field> |
|
|
|
|
|
<field name="lastname" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</field> |
|
|
|
|
|
<field name="lastname" position="after"> |
|
|
|
|
|
<field name="lastname2" attrs="{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}"/> |
|
|
|
|
|
</field> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
@ -25,29 +23,27 @@ |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="inherit_id" ref="partner_firstname.view_partner_form_firstname"/> |
|
|
<field name="inherit_id" ref="partner_firstname.view_partner_form_firstname"/> |
|
|
<field name="arch" type="xml"> |
|
|
<field name="arch" type="xml"> |
|
|
<data> |
|
|
|
|
|
<!-- Main form --> |
|
|
|
|
|
<xpath expr="//field[@name='firstname']" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
|
|
|
<!-- Main form --> |
|
|
|
|
|
<field name="firstname" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</field> |
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='lastname']" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//field[@name='lastname']" position="after"> |
|
|
|
|
|
<field name="lastname2" attrs="{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}"/> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
<!-- Inner contact form of child_ids --> |
|
|
|
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='firstname']" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='lastname']" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='lastname']" position="after"> |
|
|
|
|
|
<field name="lastname2" attrs="{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}"/> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
</data> |
|
|
|
|
|
|
|
|
<field name="lastname" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</field> |
|
|
|
|
|
<field name="lastname" position="after"> |
|
|
|
|
|
<field name="lastname2" attrs="{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}"/> |
|
|
|
|
|
</field> |
|
|
|
|
|
<!-- Inner contact form of child_ids --> |
|
|
|
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='firstname']" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='lastname']" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='lastname']" position="after"> |
|
|
|
|
|
<field name="lastname2" attrs="{'required': [('firstname', '=', False), ('lastname', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}"/> |
|
|
|
|
|
</xpath> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|