Skip to content

Commit

Permalink
Merge pull request #6 from AmetrasIntelligence/bugfix/remote_printer
Browse files Browse the repository at this point in the history
[IMP] base_report_to_printer: Set Server and Port before opening Conn…
  • Loading branch information
TobiasSorg authored Jun 18, 2024
2 parents 11d5cb7 + 6f3ad33 commit 7cb9800
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base_report_to_printer/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{
"name": "Report to printer",
"version": "13.0.1.8.0",
"version": "13.0.1.8.1",
"category": "Generic Modules/Base",
"author": "Agile Business Group & Domsense, Pegueroles SCP, NaN,"
" LasLabs, Camptocamp, Odoo Community Association (OCA),"
Expand Down
2 changes: 2 additions & 0 deletions base_report_to_printer/models/printing_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def _open_connection(self, raise_on_error=False):
self.ensure_one()
connection = False
try:
cups.setServer(self.address)
cups.setPort(self.port)
connection = cups.Connection(host=self.address, port=self.port)
except Exception:
message = _(
Expand Down

0 comments on commit 7cb9800

Please sign in to comment.