From 8c06e573a97523a7fa4fe1d4189e063b8585fad3 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Fri, 13 Jan 2012 12:04:59 +0100 Subject: [PATCH] [fix] problem with DateTimeWidget bzr revid: nicolas.vanhoren@openerp.com-20120113110459-0p2xl3t90j4nasxe --- addons/web/static/src/js/view_form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index fe604a8c0b0..a27ecc316fd 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -1439,8 +1439,8 @@ openerp.web.DateTimeWidget = openerp.web.Widget.extend({ } } }, - focus: function($element) { - this._super($element || this.$input); + focus: function() { + this.$input.focus(); }, parse_client: function(v) { return openerp.web.parse_value(v, {"widget": this.type_of_date});