|
11 | 11 | />
|
12 | 12 | <field name="arch" type="xml">
|
13 | 13 | <field name="firstname" position="attributes">
|
14 |
| - <attribute |
15 |
| - name="attrs" |
16 |
| - >{'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
| 14 | + <attribute name="attrs"> |
| 15 | + {'required': [('lastname', '=', False), ('lastname2', '=', False), |
| 16 | + ('is_company', '=', False), ('type', '=', 'contact')]} |
| 17 | + </attribute> |
17 | 18 | </field>
|
18 | 19 | <field name="lastname" position="attributes">
|
19 |
| - <attribute |
20 |
| - name="attrs" |
21 |
| - >{'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
| 20 | + <attribute name="attrs"> |
| 21 | + {'required': [('firstname', '=', False), ('lastname2', '=', False), |
| 22 | + ('is_company', '=', False), ('type', '=', 'contact')]} |
| 23 | + </attribute> |
22 | 24 | </field>
|
23 | 25 | <field name="lastname" position="after">
|
24 | 26 | <field
|
|
34 | 36 | <field name="arch" type="xml">
|
35 | 37 | <!-- Main form -->
|
36 | 38 | <field name="firstname" position="attributes">
|
37 |
| - <attribute |
38 |
| - name="attrs" |
39 |
| - >{'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
| 39 | + <attribute name="attrs"> |
| 40 | + {'required': [('lastname', '=', False), ('lastname2', '=', False), |
| 41 | + ('is_company', '=', False), ('type', '=', 'contact')]} |
| 42 | + </attribute> |
40 | 43 | </field>
|
41 | 44 | <field name="lastname" position="attributes">
|
42 |
| - <attribute |
43 |
| - name="attrs" |
44 |
| - >{'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
| 45 | + <attribute name="attrs"> |
| 46 | + {'required': [('firstname', '=', False), ('lastname2', '=', False), |
| 47 | + ('is_company', '=', False), ('type', '=', 'contact')]} |
| 48 | + </attribute> |
45 | 49 | </field>
|
46 | 50 | <field name="lastname" position="after">
|
47 | 51 | <field
|
|
54 | 58 | expr="//field[@name='child_ids']/form//field[@name='firstname']"
|
55 | 59 | position="attributes"
|
56 | 60 | >
|
57 |
| - <attribute |
58 |
| - name="attrs" |
59 |
| - >{'required': [('lastname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
| 61 | + <attribute name="attrs"> |
| 62 | + {'required': [('lastname', '=', False), ('lastname2', '=', False), |
| 63 | + ('is_company', '=', False), ('type', '=', 'contact')]} |
| 64 | + </attribute> |
60 | 65 | </xpath>
|
61 | 66 | <xpath
|
62 | 67 | expr="//field[@name='child_ids']/form//field[@name='lastname']"
|
63 | 68 | position="attributes"
|
64 | 69 | >
|
65 |
| - <attribute |
66 |
| - name="attrs" |
67 |
| - >{'required': [('firstname', '=', False), ('lastname2', '=', False), ('is_company', '=', False), ('type', '=', 'contact')]}</attribute> |
| 70 | + <attribute name="attrs"> |
| 71 | + {'required': [('firstname', '=', False), ('lastname2', '=', False), |
| 72 | + ('is_company', '=', False), ('type', '=', 'contact')]} |
| 73 | + </attribute> |
68 | 74 | </xpath>
|
69 | 75 | <xpath
|
70 | 76 | expr="//field[@name='child_ids']/form//field[@name='lastname']"
|
|
0 commit comments