[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>
This commit is contained in:
Kevin Baptiste
2019-08-02 09:09:26 +00:00
parent 765e2838dd
commit 15a7aa404b
@@ -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();
});