summaryrefslogtreecommitdiff
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
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>
-rw-r--r--addons/google_calendar/static/src/xml/google_calendar_popover.xml2
-rw-r--r--addons/microsoft_calendar/static/src/xml/microsoft_calendar_popover.xml2
2 files changed, 2 insertions, 2 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>
diff --git a/addons/microsoft_calendar/static/src/xml/microsoft_calendar_popover.xml b/addons/microsoft_calendar/static/src/xml/microsoft_calendar_popover.xml
index d6ebd394ffd..aace273141d 100644
--- a/addons/microsoft_calendar/static/src/xml/microsoft_calendar_popover.xml
+++ b/addons/microsoft_calendar/static/src/xml/microsoft_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.isMEventSyncedAndArchivable() and widget.isEventDetailsVisible()" href="#" class="btn btn-secondary o_cw_popover_archive_m">Archive</a>
+ <a t-if="typeof widget.isMEventSyncedAndArchivable === 'function' and widget.isMEventSyncedAndArchivable() and widget.isEventDetailsVisible()" href="#" class="btn btn-secondary o_cw_popover_archive_m">Archive</a>
</t>
</t>
</templates>