Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

How to show a product description (with html format ) in the shop? (v12 , self-hosted.)

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
productecommercedescriptionwebsitev12
2 Răspunsuri
10967 Vizualizări
Imagine profil
Community Question

How can the description_sales be shown as html in the website ?

So, I have the following description on a product , on the sales tab:

---

<em> test nope ! </em> <ul> <b>Description</b> <li>White Wine - Organic Farming </li> <li> DO Montsant</li> <li> The essence of the white Grenache from old vines grown in accordance to organic farming. Wine with a small ageing sur lees.</li> <li> Quite mineral, with character and freshness.</li> <li> Tropical fruits, pears, apples and limes.</li> <li> Refreshing. Herbaceous and saline notes.</li> <li> The ageing in bottle gives it creaminess.</li> </ul> Production • Alcohol 13,50% • Production 5.000 bottles

----

I would like to show it as html on the website, but instead appear as is, as text , with all the html tags.

My understanding is that there is no way to do so because description_sales is a text field to be shown on each quote, but it is more important for me the website than the quote.

Can this be done ?

It would be OK if it was markdown, or html, or even if a flag has to be set.

Thanks.

Related : https://www.odoo.com/forum/help-1/question/product-description-in-odoo-12-148541


1
Imagine profil
Abandonează
Imagine profil
Hans Rickhoff 🚀 https://obd.digital
Cel mai bun răspuns

is this also possible in the reports or in the webview of the quote? I edited the product.description_sale field as html widget. On the Website / product view its working.

But what need to be changed in the reports that the sales order line is also html. And as writen above, in the frontend where the customer can view the quote, it's also prerendert without html function.

Odoo Beratung Deutschland

2
Imagine profil
Abandonează
Imagine profil
Ray Carnes (ray)
Cel mai bun răspuns

Put your description in the Description for Customers field:

Make a small change to the way that field is rendered, by making your own View that inherits and overrides the base View that renders the field as a text field:


In the Product view (External ID:  website_sale.product), you will see this line is the way Odoo renders that field:

     <p t-field="product.description_sale" class="text-muted" />


In your own view you would hide that paragraph ** and render the contents as RAW html:

     <p  hidden="hidden" t-field="product.description_sale" class="text-muted" />
     <p t-raw="product.description_sale" class="text-muted"/>


You end up with this:

​​


Additional Help:

https://www.odoo.com/documentation/12.0/howtos/backend.html#view-inheritance

https://www.opensourceintegrators.com/publications/update-safe-changes-to-odoo-views


** hiding is a BEST PRACTICE when you make changes to ANY View in Odoo.  Many modules inherit and override Views and you never know when another View might be looking for something to anchor against. In this case, removing the paragraph will cause problems depending on what other modules are installed, so that's why we are hiding it instead.

3
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Copy-Paste Product description in eCommerce website view Rezolvat
product ecommerce description website
Imagine profil
Imagine profil
1
mai 25
7265
odoo 16 website eCommerce product image upload validations error
product ecommerce website
Imagine profil
Imagine profil
1
oct. 23
3011
Display Internal Reference on E-Commerce
product ecommerce website
Imagine profil
Imagine profil
Imagine profil
Imagine profil
Imagine profil
4
oct. 23
5832
Text label for product reference price
product ecommerce webshop website
Imagine profil
Imagine profil
2
oct. 25
588
Product Block on odoo website, hide the variant product
product ecommerce website_builder website
Imagine profil
Imagine profil
Imagine profil
2
oct. 24
3750
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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