[FIX] Date widgets does not correctly validate

bzr revid: fme@openerp.com-20110623172050-deldzkj98hcuhjjs
This commit is contained in:
Fabien Meghazi 2011-06-23 19:20:50 +02:00
parent 369117911a
commit 93cd2ec1aa
1 changed files with 1 additions and 1 deletions

View File

@ -876,7 +876,7 @@ openerp.base.form.FieldDatetime = openerp.base.form.Field.extend({
}
},
validate: function() {
this.invalid = this.required && this.$element.find('input')[this.jqueryui_object]('getDate') === '';
this.invalid = this.required && !this.$element.find('input')[this.jqueryui_object]('getDate');
},
focus: function() {
this.$element.find('input').focus();