[DOC] add documentation for position='move'

Feature merged in odoo/odoo@eee245c
This commit is contained in:
Martin Geubelle
2018-06-04 09:52:08 +02:00
parent a058bf18d3
commit aabe35c76c
+15
View File
@@ -117,6 +117,21 @@ how the matched node should be altered:
its ``name`` is removed from the matched node. If no such attribute
exists, an error is raised
Additionally, the ``position`` ``move`` can be used as a direct child of a spec
with a ``inside``, ``replace``, ``after`` or ``before`` ``position`` attribute
to move a node.
.. code-block:: xml
<xpath expr="//@target" position="after">
<xpath expr="//@node" position="move"/>
</xpath>
<field name="target_field" position="after">
<field name="my_field" position="move"/>
</field>
A view's specs are applied sequentially.
.. _reference/views/list: