[MIG][13.0] report_xml: Migration to 13.0

This commit is contained in:
Tatiana Deribina
2019-12-23 15:49:33 +02:00
committed by Enric Tobella
parent e2869482c9
commit 9df5049644
21 changed files with 428 additions and 125 deletions

View File

@@ -1,19 +1,18 @@
odoo.define('report_xml.ReportActionManager', function (require) {
'use strict';
odoo.define("report_xml.ReportActionManager", function(require) {
"use strict";
var ActionManager = require('web.ActionManager');
var ActionManager = require("web.ActionManager");
ActionManager.include({
_executeReportAction: function (action, options) {
if (action.report_type === 'qweb-xml') {
return this._triggerDownload(action, options, 'xml');
_executeReportAction: function(action, options) {
if (action.report_type === "qweb-xml") {
return this._triggerDownload(action, options, "xml");
}
return this._super(action, options);
},
_makeReportUrls: function (action) {
_makeReportUrls: function(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;
},
});