From 15a7aa404be16de9d64f945c4c31c6872dfa7b4b Mon Sep 17 00:00:00 2001 From: Kevin Baptiste Date: Fri, 2 Aug 2019 09:07:10 +0000 Subject: [FIX] note: reset date when adding multiple notes When adding multiple notes, it was keeping the date of the previous note in memory. This commit ensures the date is reset each time we click on "Add a note" closes odoo/odoo#35374 Signed-off-by: Romain Libert (rli) --- addons/note/static/src/js/systray_activity_menu.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/note/static/src') diff --git a/addons/note/static/src/js/systray_activity_menu.js b/addons/note/static/src/js/systray_activity_menu.js index ce27f6d48a1..c7680b7a60b 100644 --- a/addons/note/static/src/js/systray_activity_menu.js +++ b/addons/note/static/src/js/systray_activity_menu.js @@ -96,6 +96,7 @@ ActivityMenu.include({ } this.noteDateTimeWidget.appendTo(this.$('.o_note_datetime')).then(function() { self.noteDateTimeWidget.$input.attr('placeholder', _t("Today")); + self.noteDateTimeWidget.setValue(false); self.$('.o_note_show, .o_note').toggleClass('d-none'); self.$('.o_note_input').val('').focus(); }); -- cgit v1.2.3