summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2021-02-03 12:04:24 +0000
committerNicolas Lempereur <nle@odoo.com>2021-02-03 12:07:05 +0000
commit3ad005a49e44ce35800edcb8a178fc3544d99633 (patch)
tree7d0e391f4067624f3f3d9e577c59f35a5c5f9309 /addons/web
parent82b188a090aa34c258840343cbf594969489dd6b (diff)
[FIX] calendar: currency in popover fullcalendar V4
The update of fullcalendar (ebce7719b) in 14.0 made #45881 not working (they both happened in same month). opw-2214445 closes odoo/odoo#65451 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/static/src/js/views/calendar/calendar_popover.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/calendar/calendar_popover.js b/addons/web/static/src/js/views/calendar/calendar_popover.js
index c3b18676bde..8f2fed74601 100644
--- a/addons/web/static/src/js/views/calendar/calendar_popover.js
+++ b/addons/web/static/src/js/views/calendar/calendar_popover.js
@@ -120,7 +120,7 @@ var CalendarPopover = Widget.extend(WidgetAdapterMixin, StandaloneFieldManagerMi
}
if (field.type === 'monetary') {
var currencyField = field.currency_field || 'currency_id';
- if (!fields.includes(currencyField) && _.has(self.event.record, currencyField)) {
+ if (!fields.includes(currencyField) && _.has(self.event.extendedProps.record, currencyField)) {
fields.push(currencyField);
}
}