[FIX] web_calendar: cast the id into int. When you open a form view in a popup via the attr 'event_open_popup', in some cases the id is a string and so the popup is empty... FIX #545 PR #551

This commit is contained in:
Jeremy Kersten 2014-10-29 17:43:44 +01:00
parent f01da83a5a
commit 787147d52b
1 changed files with 1 additions and 1 deletions

View 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,