Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

<> Code view not available in Odoo HTML GUI editor? Where is it?

Odebírat

Get notified when there's activity on this post

This question has been flagged
codeemailhtmlwysiwygeditor
5 Odpovědi
17041 Zobrazení
Avatar
Hibou Ambigu

Am I going crazy or is the <> code view button missing from the WYSIWYG code editor in Odoo 13.0 Community? I see it in some video tutorials others have made, but it's not present in my editor...

I'm trying to edit the template for an email - very basic stuff, except I cannot access the raw HTML since there's no <> button apparent in the editor on my screen to view the HTML underneath for the template. I've seen this button in many people's videos about the subject, and used it before in other applications.

If anyone knows where the button went to view HTML when editing an email template from the GUI, please help! Is there a stock Odoo app that lets you peek at that stuff? 

Anytime I edit something, it screws up the Jinja template underneath for the email template, but, I cannot fix the underlying HTML without digging into the actual server files.

1
Avatar
Zrušit
Avatar
Pablo Escobar
Nejlepší odpověď

If you want to use HTML editor on any particular field, use an HTML widget.


Example:

In XML,

<field name="html_field" widget="html"/>


1
Avatar
Zrušit
Avatar
Hibou Ambigu
Autor Nejlepší odpověď

Pablo, thanks for the reply. 

I have 

<field name="body_html" widget="html" options="{'style-inline': true}"/> 

for the email template editing View (when I inspect in development mode and go to edit form: view), however, there is still no option on the WYSIWYG inline toolbar to display source/code in the editor.

I've found out that I can force it to display raw text in there by changing to widget="text" but that's not an ideal solution since I have to open the XML and manually switch back and forth.

Is there something else I'm missing that can get the source code view option back on the toolbar of the editing widget?


2
Avatar
Zrušit
Michael Sommer

I have the same issue - while changing the widget type to "text" in the view mail.template is a workaround - i hope someone will provide a solution to get the '<>' Button to switch between 'source' and 'wysiwyg' mode...

Avatar
Viktor Iliev Tsvetkov
Nejlepší odpověď

I have tried this in Odoo 14, so I'm not sure whether it will work in version 13, but you can insert the html of the code view button somewhere in the toolbar and the button will be working as expected: <button type="button" class="btn btn-secondary btn-sm" title="" data-event="codeview" tabindex="-1" data-name="codeview" data-original-title="Code View"><i class="fa fa-code"></i></button>

An easier solution is to directly edit the page html, modify the mail body and Odoo will accept the change.

0
Avatar
Zrušit
Avatar
Adrian Tuhut
Nejlepší odpověď

Try with debug mode activated. You will then see Codeview

0
Avatar
Zrušit
Avatar
Roberto Palacios git GmbH
Nejlepší odpověď

The options="{'style-inline':'true'}" is the solution to the question!! Just adding the widget is not enough.

The Ckeditor configuration option style-inline has to be set to true... Until today i was used to configure ckeditor settings via an ckeditor.js file, but in the odoo context i am not able to identifiy how to overwrite an existing config file or add an own file via a custom addon.. If anyone knows how to implement an own ckeditor.js config file, please let us know =)

0
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Display code view / edit raw-HTML in Odoo 17 Vyřešeno
code html raw editor v17
Avatar
Avatar
2
bře 24
12183
How to use text fields with HTML-Formatting Vyřešeno
html editor
Avatar
Avatar
1
čvc 25
54939
Enterprise HTML Error V10
html editor
Avatar
0
pro 17
4445
HTML A tags being sanitized unusable in html editor
html editor
Avatar
Avatar
1
čvn 15
7389
wysiwyg editor on the wizard
wysiwyg editor
Avatar
0
bře 15
5680
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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