|
@ -1,16 +1,16 @@ |
|
|
odoo.define("report_xml.ReportActionManager", function(require) { |
|
|
|
|
|
|
|
|
odoo.define("report_xml.ReportActionManager", function (require) { |
|
|
"use strict"; |
|
|
"use strict"; |
|
|
|
|
|
|
|
|
var ActionManager = require("web.ActionManager"); |
|
|
var ActionManager = require("web.ActionManager"); |
|
|
|
|
|
|
|
|
ActionManager.include({ |
|
|
ActionManager.include({ |
|
|
_executeReportAction: function(action, options) { |
|
|
|
|
|
|
|
|
_executeReportAction: function (action, options) { |
|
|
if (action.report_type === "qweb-xml") { |
|
|
if (action.report_type === "qweb-xml") { |
|
|
return this._triggerDownload(action, options, "xml"); |
|
|
return this._triggerDownload(action, options, "xml"); |
|
|
} |
|
|
} |
|
|
return this._super(action, options); |
|
|
return this._super(action, options); |
|
|
}, |
|
|
}, |
|
|
_makeReportUrls: function(action) { |
|
|
|
|
|
|
|
|
_makeReportUrls: function (action) { |
|
|
var reportUrls = this._super(action); |
|
|
var reportUrls = this._super(action); |
|
|
reportUrls.xml = reportUrls.text.replace("/report/text/", "/report/xml/"); |
|
|
reportUrls.xml = reportUrls.text.replace("/report/text/", "/report/xml/"); |
|
|
return reportUrls; |
|
|
return reportUrls; |
|
|