This file is indexed.

/usr/share/doc/tryton-server-doc/html/_sources/topics/views/extension.rst.txt is in tryton-server-doc 4.6.3-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.. _topics-extension:

==============
Extending View
==============

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 :ref:`domain
<topics-domain>`) is not set or evaluated to True, the inheritance will be
proceeded.

XML Description
===============

data
----

Each view must start with this tag.

xpath
-----

    * ``expr``: the xpath expression to find a node in the inherited view.

    * ``position``: Define the position in relation to the node found. It can
      be ``before``, ``after``, ``replace``, ``inside`` or
      ``replace_attributes`` which will change the attributes.

Example
=======

.. highlight:: xml

::

  <data>
      <xpath
          expr="/form/notebook/page/separator[@name=&quot;signature&quot;]"
          position="before">
          <label name="main_company"/>
          <field name="main_company"/>
          <label name="company"/>
          <field name="company"/>
          <label name="employee"/>
          <field name="employee"/>
      </xpath>
  </data>