Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Odoo12 Product Label

Subscribe

Get notified when there's activity on this post

This question has been flagged
labelproduct.product
2 Replies
8696 Views
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
Discard
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
Discard
Avatar
info@waehlbar.com
Author 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
Discard
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
Author

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!

Sign up
Related Posts Replies Views Activity
Print simple address label / sticker
label
Avatar
0
Jun 22
2269
Report for product.template
product.product
Avatar
Avatar
1
May 21
7527
Configuring Shipping Label
label
Avatar
0
Jan 21
3402
Label Format and detail
label
Avatar
0
Nov 19
5475
How to print Barcode Labels with price from pricelist?
product.product
Avatar
Avatar
5
Aug 16
6460
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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