From a4e801aa5f71c0540b2af92c4bb4a4b13f7fdab2 Mon Sep 17 00:00:00 2001 From: jke-openerp Date: Tue, 28 Jan 2014 11:27:42 +0100 Subject: [PATCH] [REF] Force view_id from web_calendar open_popup to int bzr revid: jke@openerp.com-20140128102742-x93t8rdsjnhnni3k --- addons/web_calendar/static/src/js/web_calendar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web_calendar/static/src/js/web_calendar.js b/addons/web_calendar/static/src/js/web_calendar.js index 59dfce5ea52..b283f8b5cb1 100644 --- a/addons/web_calendar/static/src/js/web_calendar.js +++ b/addons/web_calendar/static/src/js/web_calendar.js @@ -815,9 +815,10 @@ openerp.web_calendar = function(instance) { var self = this; var pop = new instance.web.form.FormOpenPopup(this); + console.log(this.open_popup_action, +this.open_popup_action); pop.show_element(this.dataset.model, id, this.dataset.get_context(), { title: _.str.sprintf(_t("View: %s"),title), - view_id: this.open_popup_action, + view_id: +this.open_popup_action, res_id: id, target: 'new', readonly:true