Browse Source

[FIX] If this is not a py3o report, do nothing at all. In some cases the UI remains blocked otherwise

pull/258/head
Simone Rubino 7 years ago
committed by Laurent Mignon (ACSONE)
parent
commit
0ada5e0d56
  1. 2
      report_py3o/__manifest__.py
  2. 6
      report_py3o/static/src/js/py3oactionmanager.js

2
report_py3o/__manifest__.py

@ -5,7 +5,7 @@
'name': 'Py3o Report Engine', 'name': 'Py3o Report Engine',
'summary': 'Reporting engine based on Libreoffice (ODT -> ODT, ' 'summary': 'Reporting engine based on Libreoffice (ODT -> ODT, '
'ODT -> PDF, ODT -> DOC, ODT -> DOCX, ODS -> ODS, etc.)', 'ODT -> PDF, ODT -> DOC, ODT -> DOCX, ODS -> ODS, etc.)',
'version': '10.0.2.0.1',
'version': '10.0.2.0.2',
'category': 'Reporting', 'category': 'Reporting',
'license': 'AGPL-3', 'license': 'AGPL-3',
'author': 'XCG Consulting,' 'author': 'XCG Consulting,'

6
report_py3o/static/src/js/py3oactionmanager.js

@ -27,12 +27,12 @@ var trigger_download = function(session, response, c, action, options) {
ActionManager.include({ ActionManager.include({
ir_actions_report_xml: function(action, options) { ir_actions_report_xml: function(action, options) {
var self = this; var self = this;
framework.blockUI();
action = _.clone(action);
_t = core._t;
// Py3o reports // Py3o reports
if ('report_type' in action && action.report_type == 'py3o' ) { if ('report_type' in action && action.report_type == 'py3o' ) {
framework.blockUI();
action = _.clone(action);
_t = core._t;
var report_url = '/report/py3o/' + action.report_name;; var report_url = '/report/py3o/' + action.report_name;;
// generic report: no query string // generic report: no query string
// particular: query string of action.data.form and context // particular: query string of action.data.form and context

Loading…
Cancel
Save