[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:
parent
f01da83a5a
commit
787147d52b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue