[MERGE] forward port of branch 8.0 up to 92c7874
[odoo/odoo.git] / addons / web_calendar / static / src / js / web_calendar.js
index 84e43c2..e3faabd 100644 (file)
@@ -832,7 +832,7 @@ openerp.web_calendar = function(instance) {
             }
             else {
                 var pop = new instance.web.form.FormOpenPopup(this);
-                pop.show_element(this.dataset.model, id, this.dataset.get_context(), {
+                pop.show_element(this.dataset.model, parseInt(id), this.dataset.get_context(), {
                     title: _.str.sprintf(_t("View: %s"),title),
                     view_id: +this.open_popup_action,
                     res_id: id,