summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTiffany Chang (tic) <tic@odoo.com>2019-12-31 10:37:16 +0000
committerTiffany Chang (tic) <tic@odoo.com>2020-01-03 10:34:54 +0000
commit3e37ec8844ee66b3898f8799be1765d080e0bfb4 (patch)
treef3ac3b71d4abc9f3914242a8a5b7e7fa5e5f346d /doc
parentae7f574e5446a7bc6c939fc273225b41e2296bf7 (diff)
[IMP] web: add 'create' attribute to calendar view
Previously it was always possible to create within the calendar view. For some modules this did not make sense and lead to confusing behavior, for example: a new model instance created in the calendar view that was not viewable in the calendar view, but was viewable in other views. By adding a 'create' attribute (to be used in view xml), we allow users to choose whether or not they want a calendar view to be able to create. Note that this change does not affect the edit ability of calendar views for existing instances. Part of Task: 2126530
Diffstat (limited to 'doc')
-rw-r--r--doc/reference/views.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index 1925ad3f07b..2a22bc6b13a 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -907,7 +907,9 @@ calendar view are:
``mode``
Default display mode when loading the calendar.
Possible attributes are: ``day``, ``week``, ``month``
-
+``create``
+ allows *dis*\ abling the corresponding action in the view by setting the
+ corresponding attribute to ``false``
``<field>``
declares fields to aggregate or to use in kanban *logic*. If the field is
simply displayed in the calendar cards.