Creating a Label Template
Click on the ADD button to create a new label template.
To add a sticker label for a thermal printer, choose the paper format "Custom" and specify the label width and height (in mm).
In case when you need multi labels, several labels on a sheet, you must also specify the "Cols" and "Rows" parameters in the "Layout" section. Then enter the width and height of the custom page.
To add an A4 or US Letter label template, select the appropriate paper format and specify the "Cols" and "Rows" options for a sheet layout.
Click on the CREATE TEMPLATE to continue with template settings.
Adding Label Sections
You can create label template sections and specify necessary parameters for them.
Sections can be of different types, we'll look at them next.
Let's create one by clicking on "Sections" button and creating a new record.
The first section will be the "Product Name" with the following settings:
- Relation Field:
Available section types:
Section type "
Text" allows to print static text, like as "Price:", "Sale", "Special Offer", etc.
Price" section adds a product price with a currency symbol. You can specify the currency symbol position before or after the price value.
Promo Price" section allows you to put an additional promotional price on the label. In this case, you should specify the Sales Pricelist in the Label Print Wizard.
Multi Price" section is intended to display multiple prices for a product in case you use pricelist rules based on the minimum quantity.
Section type "
Model Field" allows specifying any char or numeric field from the following label fields:
Product Attributes" section type adds product attribute values to a label, like as: "Color: Black, Size: XL". Manage to include a product attribute name or not by the "With Attribute Name" option.
Image" section type gives you the option to place an image on your label.
Let's continue with label design settings:
- Height, mm:
- Float Position:
The other available values are
Left Side and
If you choose one of them, you can place multiple sections in one row and specify their width.
Price - show product price with a currency symbol and small cents, is used only for the "Product Price" field.
Barcode - generate a section value as a barcode. This widget is used only for the "Product Barcode" field.
QR Code - generate a QR code from the section value. Can be used with any text value.
Image - show binary fields as an image. Can be used to show product images or other binary fields containing image data.
Next, let's take a look at what text settings are available:
Center, Left, Right, Justify values are available.
- Font Weight: can be
100, normal, bold, or 900.
- Font Size:
20, this value can be in pixels or mm.
- Line Height:
- Letter Spacing:
0, can be positive (
2.5) or negative (
-1), in mm.
#FFFFFF. A handy color widget allows you to choose any color from the palette.
%d/%m/%Y. You have an ability to specify a format for digit and date values.
- Text Decoration:
Line Through. Use this option to cross out the regular price when you add a promotional price to a label, or in other cases.
In addition, on the "Paddings" tab, you can configure the section padding attributes (in mm).
On the "Margins" tab, you can specify the section margins (in mm).
On the "Borders" tab, add borders for any side of the section:
Right, and specify the border width (in pixels).
On the "Background" tab, you can set up the section background.
In cases when you want to put a QR code with a URL on a label or just place a short URL, the URL shortening can provide additional benefits such as:
- more quality QR code image (as the shorted URL text value is usually smaller);
- tracking information about how often and when the URL was opened.
You can activate this option to label sections with the types "
" or "
This functionality is handled by the Odoo internal link tracker and allows getting a link like this one:
Visibility and Order of Sections
By clicking the "Sections" button on the label template form, you can open a list of sections and perform actions with them:
- Change order - just drag and drop sections to set the order that you need.
- Hide or Show - switch the "Active" option to hide or show the section.