[IMP] base_report_to_printer: pre-commit auto fixes

This commit is contained in:
John Herholz
2024-03-08 10:08:59 +01:00
committed by trisdoan
parent 4f77ec14d4
commit 7b15d258e5
25 changed files with 929 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 = []