[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
This commit is contained in:
Nicolas Lempereur 2015-05-29 09:42:29 +02:00
parent 1cea0dc4e9
commit 27834a6e9b
1 changed files with 1 additions and 1 deletions

View File

@ -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});
},
/**