LEFT | RIGHT |
1 .. _topics-extension: | 1 .. _topics-extension: |
2 | 2 |
3 =========== | 3 ============== |
4 Extend view | 4 Extending View |
5 =========== | 5 ============== |
6 | 6 |
7 Extend a view means, that the original view will be modified by a set of rules | 7 Extending a view means, that the original view will be modified by a set of |
8 that are defined with XML. | 8 rules which are defined with XML. |
9 | 9 |
10 For this purpose, the extension engine uses xpath expressions. | 10 For this purpose, the extension engine uses xpath expressions. |
11 | 11 |
12 The view is defined with the field ``inherit`` of the ir.ui.view. | 12 The view is defined with the field ``inherit`` of the ir.ui.view. |
13 | 13 |
14 If the field ``domain`` (a Python string representation of a :ref:`domain | 14 If the field ``domain`` (a Python string representation of a :ref:`domain |
15 <topics-domain>`) is not set or evaluated to True, the inheritance will be | 15 <topics-domain>`) is not set or evaluated to True, the inheritance will be |
16 proceeded. | 16 proceeded. |
17 | 17 |
18 XML description | 18 XML Description |
19 =============== | 19 =============== |
20 | 20 |
21 data | 21 data |
22 ---- | 22 ---- |
23 | 23 |
24 Each view must start with this tag. | 24 Each view must start with this tag. |
25 | 25 |
26 xpath | 26 xpath |
27 ----- | 27 ----- |
28 | 28 |
(...skipping 15 matching lines...) Expand all Loading... |
44 expr="/form/notebook/page/separator[@name="signature"]" | 44 expr="/form/notebook/page/separator[@name="signature"]" |
45 position="before"> | 45 position="before"> |
46 <label name="main_company"/> | 46 <label name="main_company"/> |
47 <field name="main_company"/> | 47 <field name="main_company"/> |
48 <label name="company"/> | 48 <label name="company"/> |
49 <field name="company"/> | 49 <field name="company"/> |
50 <label name="employee"/> | 50 <label name="employee"/> |
51 <field name="employee"/> | 51 <field name="employee"/> |
52 </xpath> | 52 </xpath> |
53 </data> | 53 </data> |
LEFT | RIGHT |