Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consulting
    • Accounting Firm
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Solar Energy Systems
    • Shoe Maker
    • Serveis de neteja
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Odoo12 Product Label

Subscriure's

Get notified when there's activity on this post

This question has been flagged
labelproduct.product
2 Respostes
8693 Vistes
Avatar
info@waehlbar.com

Hello,

i'm looking about 12h to configure the layout of the Product Label Printing. Changes in Reports (Developer Mode ON) is working for Stock Labels but change some reports from product label have no effect.

After looking for the XML-Files for Templates we found under addons/products/reports files like product_product_templates.xml which have exact the layout-code we see after printing Product Label on odoo12 Frontend (PDF and HTML Version). Some changes here have also no effect. We can remove this files and restart server and rerender all modules --- no effect. The layout by printing Product Label is every time the same. We think there is some cache or copies from the files.

What we doing wrong here? Some help will be nice --- we have do hundreds of tests and we have not the abbility to bring some changes in effect on the product-label.

Hope tomorrow is a better day...

Regards,

Borris

0
Avatar
Descartar
Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,

Can you check one more thing, activate developer mode and navigate to Settings -> Technical  -> Reporting -> Reports, and search for your report and check whether the Reload from Attachment is ticked or not. If it is already ticked, just untick and try again.


Thanks

1
Avatar
Descartar
Avatar
info@waehlbar.com
Autor Best Answer

Hello,


thanks for the quick response. Is unticked...

My Product Label (PDF) have this QWEB report:

<?xml version="1.0"?>
<t t-name="product.report_producttemplatelabel">
    <t t-call="web.basic_layout">
        <div class="page">
            <t t-foreach="docs" t-as="template">
                <t t-foreach="template.product_variant_ids" t-as="product">
                  HALLO
                    <t t-call="product.report_simple_label">
                        <t t-set="product" t-value="product"/>
                    </t>
                </t>
            </t>
        </div>
    </t>
</t>


By the way... how can i set source-code in post?

On the QWEB report i have set a simple "Hallo" and have this result:

********* here i want to place a image but i became a forbidden 403 back by set link or image tag in ost************

Link to image: http://www.nighteagle.de/downloads/result.jpg

And yes i have set the report to HTML instead to make a PDF - only for testing and changing the layout. Later i want to make PDFs and print with a Brother QL800. It works fine with Location Barcodes and my QWEG report changes.

Back to topic... i can see the QWEB report from Product Label is call the product.report_simple_label and in the file odoo/addons/product/report/product_product_templates.xml i found:

<template id="report_simple_label">
            <div style="width: 32%; display: inline-table; height:13rem;">
                <table class="table table-bordered mb-0" style="border: 20px solid black;">
                    <tr>
                        <th class="table-active text-left" style="height: 4rem;">
                            <strong t-field="product.display_name"/>
                        </th>
                    </tr>
                    <tr>
                        <td style="height: 2rem">
                            <strong>Price:</strong>
                            <strong t-field="product.lst_price" t-options="{'widget': 'monetary', 'display_currency': product.company_id.currency_id}"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="text-center align-middle" style="height: 6rem">
                            <t t-if="product.barcode">
                                <img alt="Barcode" t-if="len(product.barcode) == 13" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', product.barcode, 600, 150)" style="width:100%;height::4rem;"/>
                                <img alt="Barcode" t-elif="len(product.barcode) == 8" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN8', product.barcode, 600, 150)" style="width:100%;height::4rem;"/>
                                <img alt="Barcode" t-else="" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', product.barcode, 600, 100)" style="width:100%;height::4rem;"/>
                                <span t-field="product.barcode"/>
                            </t>
                            <t t-else=""><span class="text-muted">No barcode available</span></t>
                        </td>
                    </tr>
                </table>
            </div>
        </template>

I can delete this file or make some changes - nothing make a difference. Reboot and refresh modules have no effect. I still have the layout from the picture above.

Hope is more clear which problem i have or what im doing totally wrong here since yesterday 7am ... :-(

Regards,

Borris


0
Avatar
Descartar
Niyas Raphy (Walnut Software Solutions)

Are you saying that the changes added in the template named report_simple_label is not affecting in system ?

info@waehlbar.com
Autor

Yes and No... in the QWB-REport i can write my layout and then all is okay - but little bit tricky of the buggy wkhtmltopdf in Version 12.3.1 and now i have buggy 12.5.1 but okay-- work now onyl little Error -11 limit memory blahblah.. discusses on github problem from wkhtmltopdf author.

So if we have the xml-files then any change have no effect - thats correct.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Print simple address label / sticker
label
Avatar
0
de juny 22
2265
Report for product.template
product.product
Avatar
Avatar
1
de maig 21
7526
Configuring Shipping Label
label
Avatar
0
de gen. 21
3395
Label Format and detail
label
Avatar
0
de nov. 19
5471
How to print Barcode Labels with price from pricelist?
product.product
Avatar
Avatar
5
d’ag. 16
6452
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now