diff options
| author | Kevin Baptiste <kba@odoo.com> | 2019-08-02 09:07:10 +0000 |
|---|---|---|
| committer | Kevin Baptiste <kba@odoo.com> | 2019-08-02 09:09:26 +0000 |
| commit | 15a7aa404be16de9d64f945c4c31c6872dfa7b4b (patch) | |
| tree | b63197b46247d93c28612e4f2e7a102578faa05e /addons/note/static/src | |
| parent | 765e2838dd4bc63e7d0ad3be8e148ffdd3e147ac (diff) | |
[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) <rli@odoo.com>
Diffstat (limited to 'addons/note/static/src')
| -rw-r--r-- | addons/note/static/src/js/systray_activity_menu.js | 1 |
1 files changed, 1 insertions, 0 deletions
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(); }); |
