Skip to Content
Odoo Меню
  • Увійти
  • Спробуйте це безкоштовно
  • Додатки
    Фінанси
    • Бухоблік
    • Виставлення рахунку
    • Витрати
    • Електронні таблиці (BI)
    • Документи
    • Підпис
    Продажі
    • CRM
    • Продажі
    • POS Магазин
    • POS Ресторан
    • Підписки
    • Оренда
    Веб-сайти
    • Конструктор веб-сайту
    • Електронна комерція
    • Блог
    • Форум
    • Живий чат
    • Електронне навчання
    Ланцюг поставок
    • Склад
    • Виробництво
    • PLM
    • Купівлі
    • Технічне обслуговування
    • Якість
    Кадри
    • Співробітники
    • Рекрутинг
    • Відпустки
    • Оцінювання
    • Рекомендації
    • Автотранспорт
    Маркетинг
    • Маркетинг соцмереж
    • Email-маркетинг
    • SMS-маркетинг
    • Події
    • Автом. маркетингу
    • Опитування
    Послуги
    • Проект
    • Табелі
    • Виїзне обслуговування
    • Служба підтримки
    • Планування
    • Призначення
    Продуктивність
    • Обговорення
    • Схвалення
    • IoT
    • IP-телефонія
    • База знань
    • WhatsApp
    Сторонні модулі Odoo Studio Платформа Odoo Cloud
  • Сфери
    Роздрібна торгівля
    • Книжковий магазин
    • Магазин одягу
    • Магазин меблів
    • Продуктовий магазин
    • Магазин будівельних матеріалів
    • Магазин іграшок
    Food & Hospitality
    • Бар та паб
    • Ресторан
    • Фастфуд
    • Guest House
    • Дистриб'ютор напоїв
    • Hotel
    Нерухомість
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Управління нерухомістю
    • Садівництво
    • Асоціація власників нерухомості
    Консалтинг
    • Бухгалтерська компанія
    • Партнер Odoo
    • Агенція маркетингу
    • Юридична фірма
    • Придбання Талантів
    • Аудит та сертифікація
    Виробництво
    • Textile
    • Metal
    • Меблі
    • Їжа
    • Brewery
    • Корпоративні подарунки
    Здоров'я & Фітнес
    • Спортивний клуб
    • Оптика
    • Фітнес-центр
    • Практики здоров'я
    • Аптека
    • Салон краси
    Trades
    • Ремонтник
    • IT-обладнання та Підтримка
    • Системи сонячної енергії
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Інші
    • Nonprofit Organization
    • Екологічна агенція
    • Оренда білбордів
    • Фотографія
    • Лізинг велосипедів
    • Реселлер програмного забезпечення
    Browse all Industries
  • Спільнота
    Навчання
    • Навчальний посібник
    • Документація
    • Сертифікації
    • Тренування
    • Блог
    • Подкаст
    Сприяйте Освіті
    • Програма навчання
    • Бізнес гра Scale Up!
    • Відвідайте Odoo
    Отримайте програмне забезпечення
    • Завантаження
    • Порівняйте версії
    • Релізи
    Співпрацюйте
    • Github
    • Форум
    • Події
    • Переклади
    • Стати партнером
    • Services for Partners
    • Зареєструйте вашу бухгалтерську фірму
    Отримайте послуги
    • Знайдіть партнера
    • Знайдіть бухгалтера
    • Зустріньтеся з консультантом
    • Послуги з впровадження
    • Референси клієнтів
    • Підтримка
    • Оновлення
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Отримати демо
  • Ціни
  • Допомога

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

  • CRM
  • e-Commerce
  • Бухоблік
  • Склад
  • PoS
  • Проект
  • MRP
All apps
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Допомога

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

Підписатися

Отримуйте сповіщення про активність щодо цієї публікації

Це запитання позначене
codeemailhtmlwysiwygeditor
5 Відповіді
17168 Переглядів
Аватар
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
Аватар
Відмінити
Аватар
Pablo Escobar
Найкраща відповідь

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
Аватар
Відмінити
Аватар
Hibou Ambigu
Автор Найкраща відповідь

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
Аватар
Відмінити
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...

Аватар
Viktor Iliev Tsvetkov
Найкраща відповідь

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
Аватар
Відмінити
Аватар
Adrian Tuhut
Найкраща відповідь

Try with debug mode activated. You will then see Codeview

0
Аватар
Відмінити
Аватар
Roberto Palacios git GmbH
Найкраща відповідь

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
Аватар
Відмінити
Enjoying the discussion? Don't just read, join in!

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

Реєстрація
Related Posts Відповіді Переглядів Дія
Display code view / edit raw-HTML in Odoo 17 Вирішено
code html raw editor v17
Аватар
Аватар
2
бер. 24
12436
How to use text fields with HTML-Formatting Вирішено
html editor
Аватар
Аватар
1
лип. 25
55088
Enterprise HTML Error V10
html editor
Аватар
0
груд. 17
4491
HTML A tags being sanitized unusable in html editor
html editor
Аватар
Аватар
1
черв. 15
7476
wysiwyg editor on the wizard
wysiwyg editor
Аватар
0
бер. 15
5739
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
Open Source
  • Завантаження
  • Github
  • Runbot
  • Переклади
Послуги
  • Хостинг Odoo.sh
  • Підтримка
  • Оновлення
  • Кастомні доробки
  • Навчання
  • Знайдіть бухгалтера
  • Знайдіть партнера
  • Стати партнером
Про нас
  • Наша компанія
  • Торгові активи
  • Зв'яжіться з нами
  • Вакансії
  • Події
  • Подкаст
  • Блог
  • Клієнти
  • Юридичні документи • Конфіденційність
  • Безпека
الْعَرَبيّة 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 - це набір програм для роботи з відкритим кодом, які охоплюють всі ваші потреби компанії: CRM, електронна комерція, бухгалтерський облік, склад, точка продажу, управління проектами тощо.

Унікальна пропозиція Odoo - це одночасно дуже проста у використанні та повністю інтегрована.

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