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

This commit is contained in:
Simone Rubino
2018-05-02 13:08:34 +02:00
committed by Elmeri Niemelä
parent cb40a8e9ff
commit d8217989d0
2 changed files with 4 additions and 4 deletions

View File

@@ -27,12 +27,12 @@ var trigger_download = function(session, response, c, action, options) {
ActionManager.include({
ir_actions_report_xml: function(action, options) {
var self = this;
framework.blockUI();
action = _.clone(action);
_t = core._t;
// Py3o reports
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;;
// generic report: no query string
// particular: query string of action.data.form and context