Zebra label configuration

Odoo에서 Zebra 프로그래밍 언어 (ZPL: Zebra Programming Language) 파일 형식으로 라벨을 인쇄할 경우 4x6인치 라벨에 맞도록 설계되어 있습니다. 다양한 ZPL 라벨 크기에 맞게 텍스트 크기를 조정 (또는 서식 재지정)하려면 ZPL 라벨 보기 로 이동하여 ZPL 코드를 변경하세요.

경고

When customizing code in Odoo, please note that upgrading the database to newer versions may break custom ZPL code. Customers are responsible for maintaining their custom code.

Refer to the following sections for explanations, and example code, for frequently requested Zebra label customizations.

Adjust margin

텍스트가 55자를 초과하면 Odoo의표준 ZPL 인쇄 라벨에서 텍스트가 잘립니다. 품목명이나 로트번호가 길 경우 한 줄에 맞추려면 여백을 조정합니다.

시작하려면 아키텍처 탭에서 라벨의 ZPL 코드 로 이동합니다. 품목 레이블의 ZPL 코드에서 라벨에 텍스트나 그래픽 요소를 배치할 위치를 지정하는 ^FT 명령을 찾습니다. ^FT 바로 뒤에 오는 두 개의 숫자는 왼쪽과 위쪽 여백에서 점 (프린터의 픽셀과 유사)으로 x 좌표와 y 좌표를 정의합니다.

중요

When customizing lot/serial number labels, look for the ^FO command, instead of ^FT.

Example

다음은 Odoo의 기본 ZPL 서식에서 품목명의 일부가 잘린 예입니다. 고정 탭에서 라벨 시작 위치의 x 좌표가 전체 이름에 맞도록 ^FT100,80 에서 ^FT0,80 으로 변경되었습니다.

Example barcode label with the product name cut off.

코드:

^XA^CI28
^FT100,80^A0N,40,30^FD[E-COM11] Cabinet with Doors (wood: Cherry, handles: brass)^FS
...
^XZ

Resize barcode

바코드 크기를 조정하려면 먼저 아키텍처 탭에서 라벨 <inventory/shipping_receiving/zpl-view>에 있는 ZPL 코드 로 이동합니다. 바코드에서 여백이 시작되는 부분에 있는 ^FO 명령어 (일반적으로 세 번째 줄에 있음)를 확인합니다.

^BY 명령어로 바코드 크기를 설정하며, 바코드 너비, 좁은 쪽 대비 넓은 쪽 바코드의 너비 및 바코드 높이를 나타내는 세 개의 숫자를 사용합니다. 기본값으로, Odoo ZPL 코드에서는 ^BY3을 사용하여 바코드 너비를 세 점으로 설정하며, 이 값은 바코드 스캐너에서 판독하기가 쉬운 일반적인 크기입니다.

Example

To shrink the barcode to scale, ^BY3 is reduced to ^BY2.

Example barcode label.

코드:

^XA^CI28
...
^FO100,160^BY3
...
^XZ

Rotate elements

To rotate elements in ZPL, begin by navigating to the ZPL code of the label in the Architecture tab.

The ^BC command’s first parameter (information that affects the behavior of the command) defines the rotation of an item, which can be:

  • N: display normally

  • R: rotate 90 degrees

  • I: rotate 180 degrees

  • B: rotate 270 degrees

Example

To rotate the barcode, ^BCN is changed to ^BCB.

Example barcode label.

코드:

^XA^CI28
...
^BCN,100,Y,N,N
...
^XZ