summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/guidelines.rst1
-rw-r--r--doc/reference/views.rst7
2 files changed, 5 insertions, 3 deletions
diff --git a/doc/reference/guidelines.rst b/doc/reference/guidelines.rst
index 10bd221a51e..5710bd36ff6 100644
--- a/doc/reference/guidelines.rst
+++ b/doc/reference/guidelines.rst
@@ -281,6 +281,7 @@ Inherited XML
~~~~~~~~~~~~~
The naming pattern of inherited view is
+
#. Extension mode: Use the same xml id than the original view you are extending, and suffix it by :samp:`{_inherit}` . For instance, the view :samp:`project.project_view_form` can be extended by :samp:`project_forecast.project_view_form_inherit`.
#. Primary mode: Keep the original xml id.
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index cd96ae1b4a5..41a66050601 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -1637,9 +1637,10 @@ Possible children elements of the search view are:
If both ``operator`` and ``filter_domain`` are provided,
``filter_domain`` takes precedence.
``context``
- allows adding context keys, including the user-provided value (which
- as for ``domain`` is available as a ``self`` variable). By default,
- fields don't generate domains.
+ allows adding context keys, including the user-provided values (which
+ as for ``domain`` are available as a ``self`` variable, an array of
+ values e.g. ``[id_1, id_2]`` for a :class:`~odoo.fields.Many2one` field).
+ By default, fields don't generate domains.
.. note:: the domain and context are inclusive and both are generated
if a ``context`` is specified. To only generate context