fixed bug with datetimes

bzr revid: nicolas.vanhoren@openerp.com-20121012144037-u29a479c1oa4b3bw
This commit is contained in:
niv-openerp 2012-10-12 16:40:37 +02:00
parent 0ec666932c
commit e3b7890ac3
1 changed files with 1 additions and 1 deletions

View File

@ -2445,7 +2445,7 @@ instance.web.form.FieldDatetime = instance.web.form.AbstractField.extend(instanc
}
},
is_syntax_valid: function() {
if (!this.get("effective_readonly")) {
if (!this.get("effective_readonly") && this.datewidget) {
return this.datewidget.is_valid_();
}
return true;