fixed bug with datetimes
bzr revid: nicolas.vanhoren@openerp.com-20121012144037-u29a479c1oa4b3bw
This commit is contained in:
parent
0ec666932c
commit
e3b7890ac3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue