[FIX] Problem with DateTimeWidget

bzr revid: fme@openerp.com-20120116090243-ktqate17r1pq39ad
This commit is contained in:
Fabien Meghazi 2012-01-16 10:02:43 +01:00
parent 5b10b7022d
commit 61b4bedcab
1 changed files with 1 additions and 4 deletions

View File

@ -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);
}
});