[FIX] make prettier happy
parent
c901ea3ec0
commit
80e3a14e47
|
@ -20,7 +20,7 @@ odoo.define("report_csv.report", function (require) {
|
||||||
if (
|
if (
|
||||||
_.isUndefined(cloned_action.data) ||
|
_.isUndefined(cloned_action.data) ||
|
||||||
_.isNull(cloned_action.data) ||
|
_.isNull(cloned_action.data) ||
|
||||||
_.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) {
|
||||||
report_url += "/" + cloned_action.context.active_ids.join(",");
|
report_url += "/" + cloned_action.context.active_ids.join(",");
|
||||||
|
@ -41,7 +41,7 @@ odoo.define("report_csv.report", function (require) {
|
||||||
data: JSON.stringify([report_url, type]),
|
data: JSON.stringify([report_url, type]),
|
||||||
},
|
},
|
||||||
success: resolve,
|
success: resolve,
|
||||||
error: (error) => {
|
error: error => {
|
||||||
self.call("crash_manager", "rpc_error", error);
|
self.call("crash_manager", "rpc_error", error);
|
||||||
reject();
|
reject();
|
||||||
},
|
},
|
||||||
|
@ -54,7 +54,7 @@ odoo.define("report_csv.report", function (require) {
|
||||||
var message = _t(
|
var message = _t(
|
||||||
"A popup window with your report was blocked. You " +
|
"A popup window with your report was blocked. You " +
|
||||||
"may need to change your browser settings to allow " +
|
"may need to change your browser settings to allow " +
|
||||||
"popup windows for this page.",
|
"popup windows for this page."
|
||||||
);
|
);
|
||||||
this.do_warn(_t("Warning"), message, true);
|
this.do_warn(_t("Warning"), message, true);
|
||||||
}
|
}
|
||||||
|
@ -71,11 +71,11 @@ odoo.define("report_csv.report", function (require) {
|
||||||
var closeAction = {type: "ir.actions.act_window_close"};
|
var closeAction = {type: "ir.actions.act_window_close"};
|
||||||
return self.doAction(
|
return self.doAction(
|
||||||
closeAction,
|
closeAction,
|
||||||
_.pick(options, "on_close"),
|
_.pick(options, "on_close")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return options.on_close();
|
return options.on_close();
|
||||||
},
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return this._super.apply(this, arguments);
|
return this._super.apply(this, arguments);
|
||||||
|
|
Loading…
Reference in New Issue