diff options
| author | XavierDo <xdo@odoo.com> | 2019-02-19 11:44:48 +0000 |
|---|---|---|
| committer | XavierDo <xdo@odoo.com> | 2019-02-19 11:52:23 +0000 |
| commit | d3b2da41b7fffc5e12583048e0af1088bb1a8de2 (patch) | |
| tree | 0d9f9f787defdf8e026c77d3bc04577488f6a049 /addons/note/static/src/js/systray_activity_menu.js | |
| parent | d12c993a28b5971dc5bf7dbb88e4b7c606f592b5 (diff) | |
[FIX] note: display date picker in activity menu
The date picker should be displayed when clicking on the fa-calendar
when creating a note from activity systray.
The test was missing the assertion checking that the date picker was displayed,
but fixing this issue breaks the test. The datepicker looks to be
asynchronously initialized, and the blur event raises an error because of
that. Since it is difficult to test external libs behaviour, this
step is simply removed from the test.
Task: 1942850
closes odoo/odoo#31241
Diffstat (limited to 'addons/note/static/src/js/systray_activity_menu.js')
| -rw-r--r-- | addons/note/static/src/js/systray_activity_menu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/note/static/src/js/systray_activity_menu.js b/addons/note/static/src/js/systray_activity_menu.js index e2e484ca10f..f8a5e8e288e 100644 --- a/addons/note/static/src/js/systray_activity_menu.js +++ b/addons/note/static/src/js/systray_activity_menu.js @@ -118,7 +118,7 @@ ActivityMenu.include({ _onNoteDateTimeSetClick: function (ev) { ev.preventDefault(); ev.stopPropagation(); - this.noteDateTimeWidget.$input.click(); + this.noteDateTimeWidget.$input.select(); }, /** * Saving note (quick create) and updating activity preview |
