summaryrefslogtreecommitdiff
path: root/addons/google_calendar/static/src/xml
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2021-03-10 10:12:39 +0000
committerYannick Tivisse <yti@odoo.com>2021-03-10 10:27:48 +0000
commit623d5f0143e1c368a06ca52c4f015f682dca643b (patch)
tree3b7a3ec074c6d1ae45859a3eb9fb2e08fd81ae66 /addons/google_calendar/static/src/xml
parent91ff96a79121c1b7018f8a1f7fa9850170852c41 (diff)
[FIX] (google,microsoft)_calendar: Fix call to unexisting methods
Introduced at https://github.com/odoo/odoo/pull/65539 Purpose ======= The dynamic xml files (introducing the inheriting templates) are automatically updated. However, the JS files are introduced by adding them to the assets (which is not respecting the stable policy), and require a module update to introduce those files. As the dynamic templates use JS methods that are not included in the assets, this leads to a traceback. Reverting the commit wouldn't prevent tracebacks according to the situation of the customer (up to date or not and/or updated or no). closes odoo/odoo#67576 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/google_calendar/static/src/xml')
-rw-r--r--addons/google_calendar/static/src/xml/google_calendar_popover.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_calendar/static/src/xml/google_calendar_popover.xml b/addons/google_calendar/static/src/xml/google_calendar_popover.xml
index 641b1fcc60a..f026facc990 100644
--- a/addons/google_calendar/static/src/xml/google_calendar_popover.xml
+++ b/addons/google_calendar/static/src/xml/google_calendar_popover.xml
@@ -2,7 +2,7 @@
<templates>
<t t-extend="Calendar.attendee.status.popover">
<t t-jquery=".o_cw_popover_edit" t-operation="after">
- <a t-if="widget.isGEventSyncedAndArchivable() and widget.isEventDetailsVisible()" href="#" class="btn btn-secondary o_cw_popover_archive_g">Archive</a>
+ <a t-if="typeof widget.isGEventSyncedAndArchivable === 'function' and widget.isGEventSyncedAndArchivable() and widget.isEventDetailsVisible()" href="#" class="btn btn-secondary o_cw_popover_archive_g">Archive</a>
</t>
</t>
</templates>