diff --git a/printer_zpl2/__manifest__.py b/printer_zpl2/__manifest__.py index e8b5c8c..6637afc 100644 --- a/printer_zpl2/__manifest__.py +++ b/printer_zpl2/__manifest__.py @@ -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, " diff --git a/printer_zpl2/models/printing_label_zpl2.py b/printer_zpl2/models/printing_label_zpl2.py index 4048c31..44152f2 100644 --- a/printer_zpl2/models/printing_label_zpl2.py +++ b/printer_zpl2/models/printing_label_zpl2.py @@ -504,7 +504,9 @@ class PrintingLabelZpl2(models.Model): 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)) diff --git a/printer_zpl2/readme/CONTRIBUTORS.rst b/printer_zpl2/readme/CONTRIBUTORS.rst index 8c9e753..b6a2bf9 100644 --- a/printer_zpl2/readme/CONTRIBUTORS.rst +++ b/printer_zpl2/readme/CONTRIBUTORS.rst @@ -4,3 +4,4 @@ * Rod Schouteden * Miquel Raïch * Lois Rilo +* Tran Quoc Duong diff --git a/setup/printer_zpl2/odoo/addons/printer_zpl2 b/setup/printer_zpl2/odoo/addons/printer_zpl2 new file mode 120000 index 0000000..a6713eb --- /dev/null +++ b/setup/printer_zpl2/odoo/addons/printer_zpl2 @@ -0,0 +1 @@ +../../../../printer_zpl2 \ No newline at end of file diff --git a/setup/printer_zpl2/setup.py b/setup/printer_zpl2/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/printer_zpl2/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)