summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2018-08-31 15:55:09 +0200
committerMartin Geubelle <mge@odoo.com>2018-09-03 13:40:22 +0200
commite27340715785187467e3b3385fb4682e580122b7 (patch)
tree5a502ce3ba32500990f925c5a420a45315887fb3 /doc
parentd6a0e9db819ea279fabdaa427dca81247fa9608c (diff)
[FIX] mail: consider `activity` as a valid view type
The recently introduced `activity` view (see rev. odoo/odoo@1de9496 has not received all the consideration it deserves as a real view type (no RNG, not in the valid view `type`, no doc, etc.). It was currently only working based on a `_get_default_activity_view` method. Even if the RNG is currently really basic, its grammar could evolve in the future. This was causing an issue when opening Studio with this view as a default view with an invalid type was created.
Diffstat (limited to 'doc')
-rw-r--r--doc/reference/views.rst33
1 files changed, 32 insertions, 1 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index adb4616b2b5..5dcac794ec2 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -1275,7 +1275,7 @@ Possible children of the diagram view are:
note's content. Each ``label`` is output as a paragraph in the diagram
header, easily visible but without any special emphasis.
-.. _reference/views/search:
+.. _reference/views/dashboard:
Dashboard
=========
@@ -1460,6 +1460,8 @@ There are 5 possible type of tags in a dashboard view:
The number of columns spanned by this tag (only makes sense inside a
group). By default, 1.
+.. _reference/views/cohort:
+
Cohort
=========
@@ -1520,6 +1522,35 @@ attributes:
A field that can be aggregated. This field will be used to compute the values
for each cell. If not set, the cohort view will count the number of occurrences.
+.. _reference/views/activity:
+
+Activity
+========
+
+The Activity view is used to display the activities linked to the records. The
+data are displayed in a chart with the records forming the rows and the activity
+types the columns. When clicking on a cell, a detailed description of all
+activities of the same type for the record is displayed.
+
+.. warning::
+
+ The Activity view is only available when the ``mail`` module is installed,
+ and for the models that inherit from the ``mail.activity.mixin``.
+
+For example, here is a very simple Activity view:
+
+.. code-block:: xml
+
+ <activity string="Activities"/>
+
+The root element of the Activity view is <activity>, it accepts the following
+attributes:
+
+- ``string`` (mandatory)
+ A title, which should describe the view
+
+.. _reference/views/search:
+
Search
======