mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[16.0][MIG] printer_zpl2: Migration to 16.0
This commit is contained in:
@@ -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, "
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -4,3 +4,4 @@
|
||||
* Rod Schouteden <rod.schouteden@dynapps.be>
|
||||
* Miquel Raïch <miquel.raich@forgeflow.com>
|
||||
* Lois Rilo <lois.rilo@forgeflow.com>
|
||||
* Tran Quoc Duong <duontq@trobz.com>
|
||||
|
||||
1
setup/printer_zpl2/odoo/addons/printer_zpl2
Symbolic link
1
setup/printer_zpl2/odoo/addons/printer_zpl2
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../printer_zpl2
|
||||
6
setup/printer_zpl2/setup.py
Normal file
6
setup/printer_zpl2/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
Reference in New Issue
Block a user