mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[IMP] base_report_to_printer: black, isort, prettier
This commit is contained in:
committed by
David Montull
parent
2e6de7e605
commit
eb9b5ac525
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user