mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[14.0][IMP] base_report_to_printer: Add test page printing
This commit is contained in:
committed by
John Herholz
parent
c3835bfdc5
commit
e96023cf51
@@ -242,3 +242,10 @@ class PrintingPrinter(models.Model):
|
||||
self.mapped("server_id").update_printers()
|
||||
|
||||
return True
|
||||
|
||||
def print_test_page(self):
|
||||
for printer in self:
|
||||
connection = printer.server_id._open_connection()
|
||||
connection.printTestPage(printer.system_name)
|
||||
|
||||
self.mapped("server_id").update_jobs(which="completed")
|
||||
|
||||
Reference in New Issue
Block a user