summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/web_calendar.xml
diff options
context:
space:
mode:
authorVandan Shah <vas@odoo.com>2018-11-06 12:50:48 +0000
committerYannick Tivisse <yti@odoo.com>2019-02-05 11:45:29 +0000
commitf757b5eccd7469e3e925a6b4487084cb395a5f04 (patch)
tree3264460015e8f0b0ff51a19c5ed567675ab854c8 /addons/web/static/src/xml/web_calendar.xml
parent3272d2a384bcb2c8e756a189b78bc07728f3c577 (diff)
[IMP] web: Improve calendar display when no partner is set on event
Task:- 1906798 PR:- #28669 Co-authored By:- Mohammed Shekha <msh@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/web_calendar.xml')
-rw-r--r--addons/web/static/src/xml/web_calendar.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/web_calendar.xml b/addons/web/static/src/xml/web_calendar.xml
index ef2fa72e58d..dad48fd15ff 100644
--- a/addons/web/static/src/xml/web_calendar.xml
+++ b/addons/web/static/src/xml/web_calendar.xml
@@ -14,7 +14,7 @@
<t t-name="calendar-box">
<t t-set="color" t-value="widget.getColor(event.color_index)"/>
- <div t-att-style="typeof color === 'string' ? ('background-color:'+color)+';' : ''" t-attf-class="#{record.is_highlighted &amp;&amp; record.is_highlighted.value ? 'o_event_hightlight' : ''} #{typeof color === 'number' ? 'o_calendar_color_'+color : ''}">
+ <div t-att-style="typeof color === 'string' ? ('background-color:'+color)+';' : ''" t-attf-class="#{!event.color_index ? 'text-white' : ''} #{record.is_highlighted &amp;&amp; record.is_highlighted.value ? 'o_event_hightlight' : ''} #{typeof color === 'number' ? 'o_calendar_color_'+color : ''}">
<div class="fc-time"/>
<div class="o_fields">
<t t-foreach="widget.displayFields" t-as="name">
@@ -52,7 +52,7 @@
<t t-if="filter.value == 'all'">
<span><i class="fa fa-users fa-fw o_cal_avatar" role="img" aria-label="Avatar" title="Avatar"/></span>
</t>
- <t t-if="widget.avatar_field &amp;&amp; (filter.value != 'all')">
+ <t t-if="widget.avatar_field &amp;&amp; (filter.value &amp;&amp; filter.value != 'all')">
<img t-attf-src="/web/image/#{widget.avatar_model}/#{filter.value}/#{widget.avatar_field}" class="o_cal_avatar" alt="Avatar"/>
</t>
<t t-set="color" t-value="widget.getColor(filter.color_index)"/>