summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/web_calendar.xml
diff options
context:
space:
mode:
authorAnkita Raval <anr@odoo.com>2020-01-29 09:57:23 +0000
committerSimon Lejeune <sle@openerp.com>2020-01-29 09:57:23 +0000
commit0052222b549ca0607a295e08f282452e2231f6fc (patch)
tree94482a60c4b082a5e02c7e7a291c0da5ffd01507 /addons/web/static/src/xml/web_calendar.xml
parent3dc7a7355e6cc1cd6ca3fe20fd8dc1b08a16a57b (diff)
[REF] web: calendar: allow disabling the delete button
In this commit, we add a new attribute "Delete" for user conveniency if he don't want 'Delete' button on popover card they easily achive by "delete=false" attribute and also add a testcase for it. task-id:2088954
Diffstat (limited to 'addons/web/static/src/xml/web_calendar.xml')
-rw-r--r--addons/web/static/src/xml/web_calendar.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/web_calendar.xml b/addons/web/static/src/xml/web_calendar.xml
index 4166b5e123e..41020c9939a 100644
--- a/addons/web/static/src/xml/web_calendar.xml
+++ b/addons/web/static/src/xml/web_calendar.xml
@@ -45,7 +45,7 @@
<ul class="list-group list-group-flush o_cw_popover_fields_secondary"/>
<div class="card-footer border-top">
<a href="#" class="btn btn-primary o_cw_popover_edit">Edit</a>
- <a href="#" class="btn btn-secondary o_cw_popover_delete ml-2">Delete</a>
+ <a t-if="widget.canDelete" href="#" class="btn btn-secondary o_cw_popover_delete ml-2">Delete</a>
</div>
</div>
</t>