From 09d1d54ee62e8e513859e19c833c54f0671900de Mon Sep 17 00:00:00 2001 From: Francisco Ivan Anton Prieto Date: Mon, 25 Jan 2021 11:44:06 +0100 Subject: [PATCH] [IMP] report_xml: black, isort, prettier --- report_xml/demo/demo_report.xsd | 20 ++++++++++--------- .../src/js/report/action_manager_report.js | 6 +++--- requirements.txt | 1 + setup/report_xml/odoo/addons/report_xml | 1 + setup/report_xml/setup.py | 6 ++++++ 5 files changed, 22 insertions(+), 12 deletions(-) create mode 120000 setup/report_xml/odoo/addons/report_xml create mode 100644 setup/report_xml/setup.py diff --git a/report_xml/demo/demo_report.xsd b/report_xml/demo/demo_report.xsd index e19b01d3..385a123d 100644 --- a/report_xml/demo/demo_report.xsd +++ b/report_xml/demo/demo_report.xsd @@ -1,22 +1,24 @@ - + - + - + - - - + + + diff --git a/report_xml/static/src/js/report/action_manager_report.js b/report_xml/static/src/js/report/action_manager_report.js index d2955f42..76324b9a 100644 --- a/report_xml/static/src/js/report/action_manager_report.js +++ b/report_xml/static/src/js/report/action_manager_report.js @@ -1,16 +1,16 @@ -odoo.define("report_xml.ReportActionManager", function(require) { +odoo.define("report_xml.ReportActionManager", function (require) { "use strict"; var ActionManager = require("web.ActionManager"); ActionManager.include({ - _executeReportAction: function(action, options) { + _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/"); return reportUrls; diff --git a/requirements.txt b/requirements.txt index ff06475e..9e86e12c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ # generated from manifests external_dependencies +lxml PyPDF2 xlrd xlsxwriter diff --git a/setup/report_xml/odoo/addons/report_xml b/setup/report_xml/odoo/addons/report_xml new file mode 120000 index 00000000..f0952556 --- /dev/null +++ b/setup/report_xml/odoo/addons/report_xml @@ -0,0 +1 @@ +../../../../report_xml \ No newline at end of file diff --git a/setup/report_xml/setup.py b/setup/report_xml/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/report_xml/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)