[FIX] problem with date(time) field(s) on_focus

bzr revid: fme@openerp.com-20120320063136-hjwjttjv0g2hd84b
This commit is contained in:
Fabien Meghazi
2012-03-20 07:31:36 +01:00
parent 5e1c895fae
commit ca18442657
+1 -1
View File
@@ -1725,7 +1725,7 @@ openerp.web.form.FieldDatetime = openerp.web.form.AbstractField.extend(_.extend(
this.invalid = this.get("effective_readonly") || !this.datewidget.is_valid(this.required);
},
focus: function($element) {
this._super($element || this.datewidget.$input);
this._super($element || (this.datewidget && this.datewidget.$input));
}
}));