[FIX] Date widgets does not correctly validate
bzr revid: fme@openerp.com-20110623172050-deldzkj98hcuhjjs
This commit is contained in:
parent
369117911a
commit
93cd2ec1aa
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue