Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • 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 Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and 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
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Help

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

How to hide the producty internal reference on the printed invoice? (I did it on the SO!)

Odoberať

Get notified when there's activity on this post

This question has been flagged
salescommunityv11
2 Replies
10035 Zobrazenia
Avatar
Max Westheimer

I have successfully used the code below to hide the internal reference on a printed sales quote/order, but it does not work on a printed invoice, even though the xml structure of both views is essentially the same (unless I'm missing something). Thoughts? Odoo v11 CE

Note: if I change the "l.name" code to "l.product_id.name" directly in the report_invoice_layouted QWeb view in the Settings interface, I get the desired response (i.e. product name without the int reference).

<odoo>
    <data>
<template id="report_invoice_product_code" inherit_id="sale.report_invoice_layouted">
<xpath expr="//span[@t-field='l.name']" position="replace">
<span t-field="l.product_id.name"/>
</xpath>
</template>
</data>
</odoo>

1
Avatar
Zrušiť
Hemal Kamdar

how to do the same in Odoo v18.2? 
Want to remove For quote/SO/delivery/invoice

Avatar
Alex Lyngsoe
Best Answer

I have used this piece of Code  to hide the reference in the brackets [] in the qweb report layout:

<td>

     <span t-esc="l.name[l.name.find('] ')+2:]"/>
 </td>

2
Avatar
Zrušiť
Anthony Iloenyosi

Hi Alex,

Thanks for your help!

I have a checkbox in my sales orders/quotation that if checked should show internal references and if unchecked should not show internal references.

How do I edit my qweb report to reflect this condition?

Braňo Beňo

This is most elegant and simple trick I see for a very long time! Absolutely fantastic!

Avatar
Anthony Iloenyosi
Best Answer

for future users, 

and thanks to @Alex Lyngsoe, 

go to  settings->technical->actions->reports

search for quotation/order report and click the Qweb views action button

go to the report_saleorder_document view and search for the <td name="td_name"></td> line

edit the line to this <td name="td_name"><span t-esc="line.name[line.name.find('] ')+2:]"/></td>

this should fully hide your internal reference for sales orders/quotations

1
Avatar
Zrušiť
Ivan Aragon (ifr)

This has been really helpful. Thank you so much for sharing!!

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

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
Automated Actions - Based on Form Modification id error
community v11
Avatar
0
máj 21
3466
Product Category Wrong Language
community v11
Avatar
Avatar
2
jan 20
4017
mail.wizard.invite send email not preselected Solved
community v11
Avatar
Avatar
1
jún 19
4997
Where is the Next Activities function in Odoo 11 CE CRM? Solved
community crm v11
Avatar
Avatar
Avatar
Avatar
3
aug 22
12241
What are the steps for cancelling a sales order after products have been delivered and then returned?
sales sale.order v11
Avatar
Avatar
Avatar
Avatar
5
apr 20
10358
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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