From 27834a6e9b7d8d8c8f27bb65a41cba1399991738 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 29 May 2015 09:42:29 +0200 Subject: [PATCH] [FIX] web_calendar: keep default name if event name empty The name of an event is the name a created record will get. If the event name of a new event is left empty, the edited record will also be empty which could be less user friendly. closes #6896 fixes #6869 opw-640921 --- addons/web_calendar/static/src/js/web_calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_calendar/static/src/js/web_calendar.js b/addons/web_calendar/static/src/js/web_calendar.js index 46f8ee1b1b3..f9d108b90f7 100644 --- a/addons/web_calendar/static/src/js/web_calendar.js +++ b/addons/web_calendar/static/src/js/web_calendar.js @@ -1026,7 +1026,7 @@ openerp.web_calendar = function(instance) { slow_add: function() { var val = this.$input.val(); - this.slow_create({'name': val}); + this.slow_create(_.isEmpty(val) ? {} : {'name': val}); }, /**