diff options
Diffstat (limited to 'addons/note/static/src')
| -rw-r--r-- | addons/note/static/src/js/systray_activity_menu.js | 4 |
1 files changed, 4 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 f65dfce244f..e2e484ca10f 100644 --- a/addons/note/static/src/js/systray_activity_menu.js +++ b/addons/note/static/src/js/systray_activity_menu.js @@ -36,6 +36,8 @@ ActivityMenu.include({ }, /** * Save the note to database using datepicker date and field as note + * By default, when no datetime is set, it uses the current datetime. + * * @private */ _saveNote: function () { @@ -47,6 +49,8 @@ ActivityMenu.include({ var noteDateTime = this.noteDateTimeWidget.getValue(); if (noteDateTime) { params = _.extend(params, {'date_deadline': noteDateTime}); + } else { + params = _.extend(params, {'date_deadline': moment()}); } this.$('.o_note_show').removeClass('d-none'); this.$('.o_note').addClass('d-none'); |
