Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
1697 Vistas

Does anyone happen to know how I can print a label with the following data:


-Product name

-Price

-Ingredients

-Nutritional information

-Allergens

-Barcode

-Date of manufacture

-Expiration date


Adding fields to the product form I know.


What I still don't know is how to develop the etiquette the way I need it.


Odoo Version 18 online

Avatar
Descartar
Mejor respuesta

You can achieve this in Odoo by creating custom fields for all the required details like ingredients, nutritional information, allergens, and expiry dates. Once the fields are added, you’ll need to design a custom QWeb report or use the label printing module to format everything neatly on the label. This way, the label will automatically pull data from the product form whenever you generate it.  

Avatar
Descartar
Mejor respuesta

Hello Cynthia,

If you need a tool to create and design your own product labels, you could consider using of the Odoo Product Label Builder solution. This tool allows you to include the following data that you have mentioned above. Also, the images, barcodes, QR codes, several prices, product attributes can be added to your labels as well.

The Product Label Builder has the direct print feature, that avoiding of downloading PDF labels and opens a browser print window automatically.


Best regards, Yurii Razumovskyi.

Company Garazd CreationOdoo solutions for e-Commerce, SEO, Data Feeds, Website Tracking, Marketing, Analytics, and Marketplace integrations, Product Label designing and printing.

https://garazd.biz  |  Our solutions on Odoo Apps

Avatar
Descartar
Mejor respuesta

Hi,


To create a custom product label, follow these steps:


1. Go to Settings --> Technical --> Views.


2. Search for the template format you want to modify, such as 'report_simple_label2x7', 'report_simple_label4x7', 'report_simple_label4x12', or 'report_simple_label_dymo'.


3. Insert the code for additional fields in the appropriate position within the template. For example:


<div class="ingredients" style="font-size: 10pt; margin-bottom: 10px;">

    <strong>Ingredients:</strong>

    <span t-field="product.ingredients"/>

</div>

<div class="nutrition" style="font-size: 10pt; margin-bottom: 10px;">

    <strong>Nutritional Information:</strong>

    <div t-field="product.nutritional_info"/>

</div>

<div class="allergens" style="font-size: 10pt; margin-bottom: 10px;">

    <strong>Allergens:</strong>

    <span t-field="product.allergens"/>

</div>

<div class="mfg-date" style="font-size: 10pt; margin-bottom: 5px;">

    Mfg. Date: <span t-field="product.manufacturing_date"/>

</div>

<div class="exp-date" style="font-size: 10pt;">

    Exp. Date: <span t-field="product.expiration_date"/>

</div>


Replace manufacturing_date, expiration_date, allergens, nutritional_info, and ingredients with the actual field names used in your product model. Note that sale price and barcode are already included in the template.


Hope it helps

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
may 24
3891
1
ene 24
1593
2
mar 23
8372
0
mar 24
2041
0
oct 23
1482