[IMP] base_report_to_printer: pre-commit auto fixes

This commit is contained in:
John Herholz
2024-03-08 10:08:59 +01:00
parent cc76094d01
commit 2e43fb47d3
26 changed files with 931 additions and 674 deletions

View File

@@ -8,7 +8,6 @@ from odoo import _, exceptions, fields, models
_logger = logging.getLogger(__name__)
try:
import cups
except ImportError:
@@ -87,6 +86,7 @@ class PrintingServer(models.Model):
def action_update_printers(self):
return self.update_printers(raise_on_error=True)
# ruff: noqa: B023
def update_printers(self, domain=None, raise_on_error=False):
if domain is None:
domain = []