summaryrefslogtreecommitdiff
path: root/addons/web/static/src
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
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')
-rw-r--r--addons/web/static/src/scss/web_calendar.scss9
-rw-r--r--addons/web/static/src/xml/web_calendar.xml2
2 files changed, 10 insertions, 1 deletions
diff --git a/addons/web/static/src/scss/web_calendar.scss b/addons/web/static/src/scss/web_calendar.scss
index 55fc4c1d9ab..3dfbea15df2 100644
--- a/addons/web/static/src/scss/web_calendar.scss
+++ b/addons/web/static/src/scss/web_calendar.scss
@@ -594,6 +594,15 @@ $o-cw-filter-avatar-size: 20px;
.fc-event.o_calendar_color_#{$i} {
border-color: $color;
color: darken($color, 35%);
+ opacity: 0.8;
+
+ &.o_event_hightlight {
+ opacity: 1;
+
+ .fc-content {
+ font-weight: bold;
+ }
+ }
.fc-bg {
background: mix($color, white);
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>