Skip to content

Commit

Permalink
[16.0][MIG] printer_zpl2: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
duongtq committed Jul 13, 2023
1 parent 9c39961 commit 1f5380a
Show file tree
Hide file tree
Showing 5 changed files with 12 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.1.0.0",
"category": "Printer",
"summary": "Add a ZPL II label printing feature",
"author": "SUBTENO-IT, FLorent de Labarre, "
Expand Down
4 changes: 3 additions & 1 deletion printer_zpl2/models/printing_label_zpl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,9 @@ 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=30
)
if response.status_code == 200:
# Add a padd
im = Image.open(io.BytesIO(response.content))
Expand Down
1 change: 1 addition & 0 deletions printer_zpl2/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
* Rod Schouteden <[email protected]>
* Miquel Raïch <[email protected]>
* Lois Rilo <[email protected]>
* Tran Quoc Duong <[email protected]>
1 change: 1 addition & 0 deletions setup/printer_zpl2/odoo/addons/printer_zpl2
6 changes: 6 additions & 0 deletions setup/printer_zpl2/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 1f5380a

Please sign in to comment.