mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] eslint error
This commit is contained in:
committed by
ferran-73
parent
7b874a3e33
commit
f2a52233e9
@@ -15,6 +15,7 @@ odoo.define("report_csv.report", function (require) {
|
|||||||
framework.blockUI();
|
framework.blockUI();
|
||||||
var type = "csv";
|
var type = "csv";
|
||||||
var cloned_action = _.clone(actions);
|
var cloned_action = _.clone(actions);
|
||||||
|
var report_url = url;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
_.isUndefined(cloned_action.data) ||
|
_.isUndefined(cloned_action.data) ||
|
||||||
@@ -22,22 +23,22 @@ odoo.define("report_csv.report", function (require) {
|
|||||||
_.isObject(cloned_action.data) && _.isEmpty(cloned_action.data)
|
_.isObject(cloned_action.data) && _.isEmpty(cloned_action.data)
|
||||||
) {
|
) {
|
||||||
if (cloned_action.context.active_ids) {
|
if (cloned_action.context.active_ids) {
|
||||||
url += "/" + cloned_action.context.active_ids.join(",");
|
report_url += "/" + cloned_action.context.active_ids.join(",");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
url +=
|
report_url +=
|
||||||
"?options=" +
|
"?options=" +
|
||||||
encodeURIComponent(JSON.stringify(cloned_action.data));
|
encodeURIComponent(JSON.stringify(cloned_action.data));
|
||||||
url +=
|
report_url +=
|
||||||
"&context=" +
|
"&context=" +
|
||||||
encodeURIComponent(JSON.stringify(cloned_action.context));
|
encodeURIComponent(JSON.stringify(cloned_action.context));
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
var blocked = !session.get_file({
|
var blocked = !session.get_file({
|
||||||
url: url,
|
url: report_url,
|
||||||
data: {
|
data: {
|
||||||
data: JSON.stringify([url, type]),
|
data: JSON.stringify([report_url, type]),
|
||||||
},
|
},
|
||||||
success: resolve,
|
success: resolve,
|
||||||
error: (error) => {
|
error: (error) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user