|
|
@ -11,14 +11,16 @@ |
|
|
|
/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<field name="firstname" position="attributes"> |
|
|
|
<attribute |
|
|
|
name="attrs" |
|
|
|
>{'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
<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> |
|
|
|
<attribute name="attrs"> |
|
|
|
{'required': [('firstname', '=', False), ('lastname2', '=', False), |
|
|
|
('is_company', '=', False), ('type', '=', 'contact')]} |
|
|
|
</attribute> |
|
|
|
</field> |
|
|
|
<field name="lastname" position="after"> |
|
|
|
<field |
|
|
@ -34,14 +36,16 @@ |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<!-- Main form --> |
|
|
|
<field name="firstname" position="attributes"> |
|
|
|
<attribute |
|
|
|
name="attrs" |
|
|
|
>{'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
|
|
|
<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> |
|
|
|
<attribute name="attrs"> |
|
|
|
{'required': [('firstname', '=', False), ('lastname2', '=', False), |
|
|
|
('is_company', '=', False), ('type', '=', 'contact')]} |
|
|
|
</attribute> |
|
|
|
</field> |
|
|
|
<field name="lastname" position="after"> |
|
|
|
<field |
|
|
@ -54,17 +58,19 @@ |
|
|
|
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> |
|
|
|
<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> |
|
|
|
<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']" |
|
|
|