[FIX] make prettier happy

pull/605/head
Stéphane Bidoul 2020-05-13 15:23:56 +02:00 committed by Adrien Peiffer
parent c901ea3ec0
commit 80e3a14e47
No known key found for this signature in database
GPG Key ID: D9266D898B218452
1 changed files with 12 additions and 12 deletions

View File

@ -20,7 +20,7 @@ odoo.define("report_csv.report", function (require) {
if (
_.isUndefined(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) {
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]),
},
success: resolve,
error: (error) => {
error: error => {
self.call("crash_manager", "rpc_error", error);
reject();
},
@ -54,7 +54,7 @@ odoo.define("report_csv.report", function (require) {
var message = _t(
"A popup window with your report was blocked. You " +
"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);
}
@ -71,11 +71,11 @@ odoo.define("report_csv.report", function (require) {
var closeAction = {type: "ir.actions.act_window_close"};
return self.doAction(
closeAction,
_.pick(options, "on_close"),
_.pick(options, "on_close")
);
}
return options.on_close();
},
}
);
}
return this._super.apply(this, arguments);