Browse Source

[FIX] it's json

pull/89/head
Holger Brunn 8 years ago
committed by Jairo Llopis
parent
commit
efe28ddb2d
  1. 4
      report_custom_filename/controllers/reports.py

4
report_custom_filename/controllers/reports.py

@ -2,7 +2,7 @@
# Copyright 2014 Therp BV (<http://therp.nl>). # Copyright 2014 Therp BV (<http://therp.nl>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import JSON
import json
from openerp import http from openerp import http
from openerp.addons.web.controllers import main from openerp.addons.web.controllers import main
from openerp.addons.mail.models import mail_template from openerp.addons.mail.models import mail_template
@ -13,7 +13,7 @@ class Reports(main.Reports):
@main.serialize_exception @main.serialize_exception
def index(self, action, token): def index(self, action, token):
result = super(Reports, self).index(action, token) result = super(Reports, self).index(action, token)
action = JSON.parse(action)
action = json.loads(action)
context = dict(http.request.context) context = dict(http.request.context)
context.update(action["context"]) context.update(action["context"])
report_xml = http.request.session.model('ir.actions.report.xml') report_xml = http.request.session.model('ir.actions.report.xml')

Loading…
Cancel
Save