mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] base_report_to_printer: update printers wizard
- Add access rules to the wizard - Set a fallback name for the printers and respect the user custom ones TT45159
This commit is contained in:
@@ -70,7 +70,7 @@ class PrintingPrinter(models.Model):
|
||||
def _prepare_update_from_cups(self, cups_connection, cups_printer):
|
||||
mapping = {3: "available", 4: "printing", 5: "error"}
|
||||
cups_vals = {
|
||||
"name": cups_printer["printer-info"],
|
||||
"name": self.name or cups_printer["printer-info"],
|
||||
"model": cups_printer.get("printer-make-and-model", False),
|
||||
"location": cups_printer.get("printer-location", False),
|
||||
"uri": cups_printer.get("device-uri", False),
|
||||
|
||||
Reference in New Issue
Block a user