[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:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user