[REF] Force view_id from web_calendar open_popup to int

bzr revid: jke@openerp.com-20140128102742-x93t8rdsjnhnni3k
This commit is contained in:
jke-openerp 2014-01-28 11:27:42 +01:00
parent 9f8bd865dc
commit a4e801aa5f
1 changed files with 2 additions and 1 deletions

View File

@ -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