Extending a view means, that the original view will be modified by a set of rules which are defined with XML.
For this purpose, the extension engine uses xpath expressions.
The view is defined with the field inherit
of the ir.ui.view.
If the field domain
(a Python string representation of a domain) is not set or evaluated to True, the inheritance will be
proceeded.
Each view must start with this tag.
expr
: the xpath expression to find a node in the inherited view.position
: Define the position in relation to the node found. It can bebefore
,after
,replace
,inside
orreplace_attributes
which will change the attributes.
<data>
<xpath
expr="/form/notebook/page/separator[@name="signature"]"
position="before">
<label name="main_company"/>
<field name="main_company"/>
<label name="company"/>
<field name="company"/>
<label name="employee"/>
<field name="employee"/>
</xpath>
</data>