[fix] some problem with datetimes when going to the users view (?)
bzr revid: nicolas.vanhoren@openerp.com-20120319163012-4fgczm4g02vu39gb
This commit is contained in:
parent
445d87b60d
commit
89377361be
|
@ -1713,7 +1713,11 @@ openerp.web.form.FieldDatetime = openerp.web.form.AbstractField.extend(_.extend(
|
|||
}
|
||||
},
|
||||
get_value: function() {
|
||||
return this.datewidget.get_value();
|
||||
if (!this.get("effective_readonly")) {
|
||||
return this.datewidget.get_value();
|
||||
} else {
|
||||
return this.value;
|
||||
}
|
||||
},
|
||||
validate: function() {
|
||||
this.invalid = this.get("effective_readonly") || !this.datewidget.is_valid(this.required);
|
||||
|
|
Loading…
Reference in New Issue