summaryrefslogtreecommitdiff
path: root/addons/microsoft_calendar/static/src/xml
diff options
context:
space:
mode:
authorAurélien (avd) <avd@odoo.com>2021-02-04 13:23:55 +0000
committerAurélien (avd) <avd@odoo.com>2021-02-04 14:09:46 +0000
commit86ffe7548627cfa57eb38594c4e8a7a578ca9eac (patch)
tree32ccadbb7b78f1fc5740778d973cfa31639c1728 /addons/microsoft_calendar/static/src/xml
parent0564b4a6dacf449e2a87dfdd58bb48b4e79ebfab (diff)
[IMP] microsoft_calendar: allow to archive synced event
Change Delete secondary button to Archive on calendar popover for synced calendar event. This makes it easier to delete synced button from the calendar view. (This commit is roughly the same as the one for google calendar, with an additional check in MicrosoftCalendarPopover.js) closes odoo/odoo#65539 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/microsoft_calendar/static/src/xml')
-rw-r--r--addons/microsoft_calendar/static/src/xml/microsoft_calendar_popover.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/microsoft_calendar/static/src/xml/microsoft_calendar_popover.xml b/addons/microsoft_calendar/static/src/xml/microsoft_calendar_popover.xml
new file mode 100644
index 00000000000..d6ebd394ffd
--- /dev/null
+++ b/addons/microsoft_calendar/static/src/xml/microsoft_calendar_popover.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates>
+ <t t-extend="Calendar.attendee.status.popover">
+ <t t-jquery=".o_cw_popover_edit" t-operation="after">
+ <a t-if="widget.isMEventSyncedAndArchivable() and widget.isEventDetailsVisible()" href="#" class="btn btn-secondary o_cw_popover_archive_m">Archive</a>
+ </t>
+ </t>
+</templates>