summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/web_calendar.xml
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2019-11-25 14:05:01 +0000
committerNicolas Lempereur <nle@odoo.com>2019-11-28 16:57:04 +0000
commit34aae9faa548f6a75075ad0cb91ea39e5ef9b06c (patch)
treee06fa499ee1561e83a5cb25584372ea219f8d7a9 /addons/web/static/src/xml/web_calendar.xml
parent35eab823b0cb742dfd21ad15820410b56a8822bd (diff)
[FIX] web: typo calendar highlight -> ok now
Adapt calendar highlight option (that "highlight" event linked to the record we come from) to current JS framework data structures. note: this changeset also fixes the original `_compute_is_highlighted` that was would trigger CacheMiss errors, and also adds back the CSS for highlighting that was lost between 12.0 and 13.0 version. opw-2131494 closes #40791 closes odoo/odoo#41077 X-original-commit: da56e3e7036ecdb3905f4152778e853e080e0163 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
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 50c00ab8b20..a4a4731b451 100644
--- a/addons/web/static/src/xml/web_calendar.xml
+++ b/addons/web/static/src/xml/web_calendar.xml
@@ -12,7 +12,7 @@
</div>
<t t-name="calendar-box">
- <div t-att-style="typeof color === 'string' ? ('background-color:' + color) + ';' : ''" t-attf-class="#{!event.color_index ? 'text-white' : ''} #{record.is_highlighted and record.is_highlighted.value ? 'o_event_hightlight' : ''} #{typeof color === 'number' ? _.str.sprintf('o_calendar_color_%s', color) : ''}">
+ <div t-att-style="typeof color === 'string' ? ('background-color:' + color) + ';' : ''" t-attf-class="#{!event.color_index ? 'text-white' : ''} #{record.is_highlighted ? 'o_event_hightlight' : ''} #{typeof color === 'number' ? _.str.sprintf('o_calendar_color_%s', color) : ''}">
<div class="o_event_title" t-esc="record.display_name"/>
</div>
</t>