mirror of
https://github.com/bringout/oca-report.git
synced 2026-04-19 12:22:00 +02:00
update all kept modules to OCA 19.0 versions
bi_sql_editor 19.0.1.0.1, report_csv 19.0.1.0.0,
report_qweb_element_page_visibility 19.0.1.0.0,
report_xlsx_helper 19.0.1.0.0, report_xml 19.0.1.0.0,
sql_request_abstract 19.0.1.0.0
🤖 assisted by claude
This commit is contained in:
parent
05df50b41d
commit
c18e7fd4c7
258 changed files with 8677 additions and 6341 deletions
|
|
@ -48,12 +48,14 @@ class ReportController(report.ReportController):
|
|||
return request.make_response(xml, headers=xmlhttpheaders)
|
||||
|
||||
@route()
|
||||
def report_download(self, data, context=None, token=None):
|
||||
def report_download(self, data, context=None, token=None, readonly=True):
|
||||
requestcontent = json.loads(data)
|
||||
url, report_type = requestcontent[0], requestcontent[1]
|
||||
reportname = "???"
|
||||
if report_type != "qweb-xml":
|
||||
return super().report_download(data, context=context, token=token)
|
||||
return super().report_download(
|
||||
data, context, token=token, readonly=readonly
|
||||
)
|
||||
try:
|
||||
reportname = url.split("/report/xml/")[1].split("?")[0]
|
||||
docids = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue