[FIX] small bug that made the reports crash when we try to print them

bzr revid: nicolas.vanhoren@openerp.com-20130715121611-q68m7w62h8ngnb2i
This commit is contained in:
niv-openerp
2013-07-15 14:16:11 +02:00
parent a81df9ca2b
commit 7743f13c04
+4 -3
View File
@@ -334,9 +334,10 @@ instance.web.Session = instance.web.JsonRPC.extend( /** @lends instance.web.Sess
}).appendTo(document.body);
}
_(_.extend({}, options.data || {},
{session_id: this.override_session ? this.session_id : undefined, token: token}))
.each(function (value, key) {
var hparams = _.extend({}, options.data || {}, {token: token});
if (this.override_session)
hparams.session_id = this.session_id;
_.each(hparams, function (value, key) {
var $input = $form.find('[name=' + key +']');
if (!$input.length) {
$input = $('<input type="hidden" name="' + key + '">')