[IMP] base_report_to_printer: black, isort, prettier

This commit is contained in:
Carlos Roca
2021-01-12 09:33:27 +01:00
committed by David Montull
parent 2e6de7e605
commit eb9b5ac525
7 changed files with 20 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
odoo.define("base_report_to_printer.print", function(require) {
odoo.define("base_report_to_printer.print", function (require) {
"use strict";
var ActionManager = require("web.ActionManager");
@@ -6,7 +6,7 @@ odoo.define("base_report_to_printer.print", function(require) {
var _t = core._t;
ActionManager.include({
_triggerDownload: function(action, options, type) {
_triggerDownload: function (action, options, type) {
var self = this;
var _super = this._super;
if (type === "pdf") {
@@ -14,7 +14,7 @@ odoo.define("base_report_to_printer.print", function(require) {
model: "ir.actions.report",
method: "print_action_for_report_name",
args: [action.report_name],
}).then(function(print_action) {
}).then(function (print_action) {
if (print_action && print_action.action === "server") {
self._rpc({
model: "ir.actions.report",
@@ -23,7 +23,7 @@ odoo.define("base_report_to_printer.print", function(require) {
kwargs: {data: action.data || {}},
context: action.context || {},
}).then(
function() {
function () {
self.do_notify(
_t("Report"),
_.str.sprintf(
@@ -32,7 +32,7 @@ odoo.define("base_report_to_printer.print", function(require) {
)
);
},
function() {
function () {
self.do_notify(
_t("Report"),
_.str.sprintf(