-
- Downloads
[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.
Showing
- addons/web/static/src/js/views/kanban/kanban_column.js 1 addition, 0 deletionsaddons/web/static/src/js/views/kanban/kanban_column.js
- addons/web/static/src/js/views/kanban/kanban_view.js 1 addition, 0 deletionsaddons/web/static/src/js/views/kanban/kanban_view.js
- addons/web/static/src/xml/kanban.xml 1 addition, 1 deletionaddons/web/static/src/xml/kanban.xml
- addons/web/static/tests/views/kanban_tests.js 70 additions, 1 deletionaddons/web/static/tests/views/kanban_tests.js
- doc/reference/views.rst 3 additions, 0 deletionsdoc/reference/views.rst
Loading
Please register or sign in to comment