|
|
@ -17,10 +17,12 @@ |
|
|
|
<group attrs="{'invisible': [('is_company', '=', True)]}"> |
|
|
|
<field name="lastname" attrs= |
|
|
|
"{'required': [('firstname', '=', False), |
|
|
|
('is_company', '=', False)]}"/> |
|
|
|
('is_company', '=', False), |
|
|
|
('type', '=', 'contact')]}"/> |
|
|
|
<field name="firstname" attrs= |
|
|
|
"{'required': [('lastname', '=', False), |
|
|
|
('is_company', '=', False)]}"/> |
|
|
|
('is_company', '=', False), |
|
|
|
('type', '=', 'contact')]}"/> |
|
|
|
</group> |
|
|
|
</xpath> |
|
|
|
</data> |
|
|
@ -45,10 +47,12 @@ |
|
|
|
<group attrs="{'invisible': [('is_company', '=', True)]}"> |
|
|
|
<field name="lastname" attrs= |
|
|
|
"{'required': [('firstname', '=', False), |
|
|
|
('is_company', '=', False)]}"/> |
|
|
|
('is_company', '=', False), |
|
|
|
('type', '=', 'contact')]}"/> |
|
|
|
<field name="firstname" attrs= |
|
|
|
"{'required': [('lastname', '=', False), |
|
|
|
('is_company', '=', False)]}"/> |
|
|
|
('is_company', '=', False), |
|
|
|
('type', '=', 'contact')]}"/> |
|
|
|
</group> |
|
|
|
</div> |
|
|
|
</xpath> |
|
|
@ -69,10 +73,12 @@ |
|
|
|
<group attrs="{'invisible': [('is_company', '=', True)]}"> |
|
|
|
<field name="lastname" attrs= |
|
|
|
"{'required': [('firstname', '=', False), |
|
|
|
('is_company', '=', False)]}"/> |
|
|
|
('is_company', '=', False), |
|
|
|
('type', '=', 'contact')]}"/> |
|
|
|
<field name="firstname" attrs= |
|
|
|
"{'required': [('lastname', '=', False), |
|
|
|
('is_company', '=', False)]}"/> |
|
|
|
('is_company', '=', False), |
|
|
|
('type', '=', 'contact')]}"/> |
|
|
|
</group> |
|
|
|
</div> |
|
|
|
</xpath> |
|
|
|