diff options
| author | Romeo Fragomeli <rfr@odoo.com> | 2020-05-22 15:34:56 +0000 |
|---|---|---|
| committer | Romeo Fragomeli <rfr@odoo.com> | 2020-05-26 08:57:40 +0000 |
| commit | 3e29babc3ecb1d160039e3786734acd8e6baa130 (patch) | |
| tree | 5c908698533ce8c346854d55e9fa52aa76c4b274 /addons/web/static/src/js/views | |
| parent | 2ef534a6d529a3c27a938f44ddf903a40ffc10fa (diff) | |
[FIX] web: calendar: hide event span when not used
Due to commit odoo/odoo@8e48ba3eb59939cb5f8bdb715afa5e520b532a00
a span was added to show the time before the title on a event in
month view.
DOM of event
+---------------+
| SPAN FOR TIME |
+---------------+
| TITLE |
| |
| |
+---------------+
This commit, hide the empty span when is not needed, to avoid empty
blank space.
Steps to reproduce:
* Go in calendar app
* Go in view week (BUG)
closes odoo/odoo#51859
X-original-commit: 8456be44b1bc6746563cbca5366257a1da8b4a53
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: rfr-odoo <rfr-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views')
| -rw-r--r-- | addons/web/static/src/js/views/calendar/calendar_renderer.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/calendar/calendar_renderer.js b/addons/web/static/src/js/views/calendar/calendar_renderer.js index 4f492585ef1..be96cf25068 100644 --- a/addons/web/static/src/js/views/calendar/calendar_renderer.js +++ b/addons/web/static/src/js/views/calendar/calendar_renderer.js @@ -354,6 +354,7 @@ return AbstractRenderer.extend({ event: event, record: event.extendedProps.record, color: this.getColor(event.extendedProps.color_index), + showTime: !self.hideTime && event.extendedProps.showTime, }; this.qweb_context = qweb_context; if (_.isEmpty(qweb_context.record)) { |
