summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-09-13 17:53:12 +0200
committerThibault Delavallée <tde@odoo.com>2018-09-21 11:22:01 +0200
commit6663ff97b66fb3169f36bbc44e6bcffa5715c228 (patch)
treebef3b7d25875cb04d212bc0d3e4a51fa7faad240 /doc/reference
parentda03aa31386d50e7f8a5853daabf29ce75e7eaf8 (diff)
[IMP] web: add an option to hide archive option in kanban columns
Currently kanban columns propose an Archive / Unarchive option if the records model has an active field. It allows to directly archive or restore all records belonging to that column. It is currently not possible to control whether this option is present or not as it only depends on the active field being defined on the model. In some specific cases we want to be able to hide this option even if the active field exists. For example future commits will hide this option for leads (crm.lead) as business flow goes through marking them as won or lost instead of archiving / restoring them. This commit adds support of a new archivable parameter when defining the kanban view that hides the archive buttons if it is set to False. Default value is true so that current behavior is kept as it is by default. Doc and tests are added. This commit is linked to task ID 1880051 and PR #26977.
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/views.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index 052c63a97f5..373a31b022a 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -998,6 +998,9 @@ attributes:
whether groups can be deleted via the context menu. Default: true.
``group_edit``
whether groups can be edited via the context menu. Default: true.
+``archivable``
+ whether records belonging to a column can be archived / restored if an
+ ``active`` field is defined on the model. Default: true.
``quick_create``
whether it should be possible to create records without switching to the
form view. By default, ``quick_create`` is enabled when the Kanban view is