diff --git a/addons/web_calendar/static/src/js/web_calendar.js b/addons/web_calendar/static/src/js/web_calendar.js index 2aa40c39455..20043acb459 100644 --- a/addons/web_calendar/static/src/js/web_calendar.js +++ b/addons/web_calendar/static/src/js/web_calendar.js @@ -820,10 +820,11 @@ openerp.web_calendar = function(instance) { } else { var pop = new instance.web.form.FormOpenPopup(this); - pop.show_element(this.dataset.model, parseInt(id), this.dataset.get_context(), { + var id_cast = parseInt(id).toString() == id ? parseInt(id) : id; + pop.show_element(this.dataset.model, id_cast, this.dataset.get_context(), { title: _.str.sprintf(_t("View: %s"),title), view_id: +this.open_popup_action, - res_id: id, + res_id: id_cast, target: 'new', readonly:true });