[FIX] Problem with DateTimeWidget
bzr revid: fme@openerp.com-20120116090243-ktqate17r1pq39ad
This commit is contained in:
parent
5b10b7022d
commit
61b4bedcab
|
@ -1439,9 +1439,6 @@ openerp.web.DateTimeWidget = openerp.web.Widget.extend({
|
|||
}
|
||||
}
|
||||
},
|
||||
focus: function() {
|
||||
this.$input.focus();
|
||||
},
|
||||
parse_client: function(v) {
|
||||
return openerp.web.parse_value(v, {"widget": this.type_of_date});
|
||||
},
|
||||
|
@ -1487,7 +1484,7 @@ openerp.web.form.FieldDatetime = openerp.web.form.Field.extend({
|
|||
this.invalid = !this.datewidget.is_valid(this.required);
|
||||
},
|
||||
focus: function($element) {
|
||||
this._super($element || this.datewidget);
|
||||
this._super($element || this.datewidget.$input);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue