diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-06-18 13:06:21 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-06-18 13:09:28 +0000 |
| commit | 32603da5ba4ac601329561b7c107ec79a1f6a9eb (patch) | |
| tree | d049eee7609fe9ed2e7ff953c752fbc0d4348f05 | |
| parent | 36abc4641cd0a223c537ddf9018008f73f07724a (diff) | |
[FIX] web: avatar on empty field
- Create a calendar event
- In debug mode, remove the responsible
The 'Avatar Undefined' string is displayed at the botton of the
responsibles' list.
Do no fetch an image for a falsy value (= falsy id)
opw-2010007
closes odoo/odoo#34215
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
| -rw-r--r-- | addons/web/static/src/xml/web_calendar.xml | 2 |
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 ef2fa72e58d..d3023f6192b 100644 --- a/addons/web/static/src/xml/web_calendar.xml +++ b/addons/web/static/src/xml/web_calendar.xml @@ -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 && (filter.value != 'all')"> + <t t-if="widget.avatar_field && (filter.value != 'all') && (filter.value)"> <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)"/> |
