Skip to content
Snippets Groups Projects
Commit 15a7aa40 authored by Kevin Baptiste's avatar Kevin Baptiste
Browse files

[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: default avatarRomain Libert (rli) <rli@odoo.com>
parent 765e2838
No related branches found
No related tags found
No related merge requests found
......@@ -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();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment