OCA reporting engine fork for dev and update.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
672 B

  1. odoo.define('report_xml.ReportActionManager', function(require){
  2. 'use strict';
  3. var ActionManager = require('web.ActionManager');
  4. ActionManager.include({
  5. _executeReportAction: function (action, options) {
  6. if (action.report_type === 'qweb-xml') {
  7. return this._triggerDownload(action, options, 'xml');
  8. }
  9. return this._super(action, options);
  10. },
  11. _makeReportUrls: function (action) {
  12. var reportUrls = this._super(action);
  13. reportUrls.xml = reportUrls.text.replace(
  14. '/report/text/', '/report/xml/');
  15. return reportUrls;
  16. },
  17. });
  18. });