[FIX] web_calendar: cast the id into int. When you open a form view in a popup via...
authorJeremy Kersten <jke@odoo.com>
Wed, 29 Oct 2014 16:43:44 +0000 (17:43 +0100)
committerJeremy Kersten <jke@odoo.com>
Wed, 29 Oct 2014 16:43:44 +0000 (17:43 +0100)
addons/web_calendar/static/src/js/web_calendar.js

index d32cbe4..5f90f49 100644 (file)
@@ -855,7 +855,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,