mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[IMP] base_report_to_printer: pre-commit auto fixes
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user