mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[IMP] Add diagonal lines management
This commit is contained in:
committed by
Lois Rilo
parent
1024ddfa42
commit
59be9bc048
@@ -123,6 +123,16 @@ class PrintingLabelZpl2(models.Model):
|
||||
zpl2.ARG_COLOR: component.color,
|
||||
zpl2.ARG_ROUNDING: component.rounding,
|
||||
})
|
||||
elif component.component_type == 'diagonal':
|
||||
label_data.graphic_diagonal_line(
|
||||
component_offset_x, component_offset_y, {
|
||||
zpl2.ARG_WIDTH: component.width,
|
||||
zpl2.ARG_HEIGHT: component.height,
|
||||
zpl2.ARG_THICKNESS: component.thickness,
|
||||
zpl2.ARG_COLOR: component.color,
|
||||
zpl2.ARG_DIAGONAL_ORIENTATION:
|
||||
component.diagonal_orientation,
|
||||
})
|
||||
elif component.component_type == 'graphic':
|
||||
image = component.graphic_image or data
|
||||
pil_image = Image.open(io.BytesIO(
|
||||
|
||||
Reference in New Issue
Block a user