summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss
diff options
context:
space:
mode:
authorjbm-odoo <jbm@odoo.com>2019-12-09 13:11:36 +0000
committerYannick Tivisse <yti@odoo.com>2020-01-27 16:08:34 +0000
commitfa48e05f42492fdca7fd371bca1b2643b50e4ac0 (patch)
treed071c4bf2803893f91c9179ad422e1a8e2df59ae /addons/web/static/src/scss
parentd39fc89324810df765cdcdbe2113446ec5cd882d (diff)
[IMP] calendar: Improve color and filters
Now in a calendar view, if we use the color, attribute, it will use the same color as Gantt views and the color picker widget. The attribute color isn't more set as default in filter because it make, in most situation, no sense to filter by color. Now, we can add new filters in the right panel. To do that, we must add the attribute "filter='1'" in the corresponding field line. And if the filter has no direct link with the color of the model, we can specify an attribute 'color' for this filter line block. (for example color='color', and the color of the related model will be used) TaskID: 2153249
Diffstat (limited to 'addons/web/static/src/scss')
-rw-r--r--addons/web/static/src/scss/web_calendar.scss6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/src/scss/web_calendar.scss b/addons/web/static/src/scss/web_calendar.scss
index 6f7c569feb6..c81bf92ec47 100644
--- a/addons/web/static/src/scss/web_calendar.scss
+++ b/addons/web/static/src/scss/web_calendar.scss
@@ -588,7 +588,7 @@ $o-cw-filter-avatar-size: 20px;
$color: nth($o-colors-complete, $i);
.o_calendar_view .fc-view {
- .fc-event.o_calendar_color_#{$i} {
+ .fc-event.o_calendar_color_#{$i - 1} {
border-color: $color;
color: darken($color, 35%);
opacity: 0.8;
@@ -616,7 +616,7 @@ $o-cw-filter-avatar-size: 20px;
}
}
- .o_cw_filter_color_#{$i} {
+ .o_cw_filter_color_#{$i - 1} {
.o_cw_filter_input_bg {
border-color: $color;
background: $color;
@@ -624,7 +624,7 @@ $o-cw-filter-avatar-size: 20px;
}
}
- .o_cw_popover.o_calendar_color_#{$i} {
+ .o_cw_popover.o_calendar_color_#{$i - 1} {
$color-subdle: mix(white, $color, 90%);
.card-header, .card-header .popover-header {