summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-01-28 13:58:11 +0000
committerChristophe Simonis <chs@odoo.com>2019-01-28 13:58:11 +0000
commitcf52a04979d7634908c2f0d8eb6a83b7dd614f64 (patch)
tree2f8c25f3fab45268400c4ac6addfa15f1f2d37f0 /doc/reference
parentcd1f57e9ded2e8ca81d7290e4b5b95a8776045c6 (diff)
parentd3b8422c9c44557256836bdc0da5480f553eec4d (diff)
[MERGE] forward port branch saas-12.1 up to d3b8422c9c4
closes odoo/odoo#30614
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