summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorHiral Bhavsar <hbh@odoo.com>2018-02-21 18:50:38 +0530
committerMartin Geubelle <mge@odoo.com>2018-04-25 09:50:44 +0200
commit5c651a09e12b4657bfe64e37e353c0a86f40a0ce (patch)
treedf9bfb43b9273966d4a77fc21614a77de0ac02d9 /addons/web/static/src/xml
parentb192431aeecc59b48898ce9c6f276b82d65cbfa6 (diff)
[IMP] web: Kanban: allow to archive/restore column records
This feature has been removed in rev. odoo/odoo@e533085 but this commit reintroduces it. It was considered as "too dangerous" for new users. Instead of removing the feature, a confirmation request has been added to warn the user about his potentially harmful action. The same warning has also been added in List view when archiving records. Task 60393 Co-authored-by: Mohammed Shekha <msh@openerp.com>
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/kanban.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/kanban.xml b/addons/web/static/src/xml/kanban.xml
index 23af895b8ea..9c3fac6574a 100644
--- a/addons/web/static/src/xml/kanban.xml
+++ b/addons/web/static/src/xml/kanban.xml
@@ -22,6 +22,10 @@
<li t-if="widget.editable and widget.id"><a class="o_column_edit" href="#">Edit Stage</a></li>
<li t-if="widget.deletable and widget.id"><a class="o_column_delete" href="#">Delete</a></li>
</t>
+ <t t-if="widget.has_active_field">
+ <li><a class="o_column_archive_records" href="#">Archive All</a></li>
+ <li><a class="o_column_unarchive_records" href="#">Restore All</a></li>
+ </t>
</ul>
</span>
<span t-if="widget.quick_create" class="o_kanban_quick_add"><i class="fa fa-plus"/></span>