Skip to content

Commit

Permalink
[MIG] printer_zpl2: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
micheledic committed Jul 28, 2023
1 parent 2f192fa commit b1dd2ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion printer_zpl2/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Printer ZPL II",
"version": "15.0.1.0.0",
"version": "16.0.0.0.0",
"category": "Printer",
"summary": "Add a ZPL II label printing feature",
"author": "SUBTENO-IT, FLorent de Labarre, "
Expand Down
2 changes: 1 addition & 1 deletion printer_zpl2/models/printing_label_zpl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def _generate_labelary_image(self):
zpl_file = self._generate_zpl2_data(record, labelary_emul=True, **extra)
files = {"file": zpl_file}
headers = {"Accept": "image/png"}
response = requests.post(url, headers=headers, files=files, stream=True)
response = requests.post(url, headers=headers, files=files, stream=True, timeout=10)
if response.status_code == 200:
# Add a padd
im = Image.open(io.BytesIO(response.content))
Expand Down

0 comments on commit b1dd2ad

Please sign in to comment.