Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
10652 Представления

Been looking at how to enable code view (which used to be symbolised by > in the old editor) however I can't find any way to use it with the new HTML field on version 15.


Did anyone find how to use it? A major feature of the editor is just to remove.

Аватар
Отменить
Лучший ответ

Hi,

Add the following with the html field in odoo 15:  options="{'codeview': true}"

Thanks

Аватар
Отменить
Автор

This worked, thank you!

Лучший ответ

Hello Levi Bensley,

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

Find  Example in Comment.


Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Аватар
Отменить

Example:
In XML file,
<field name="html_field" widget="html"/>

Related Posts Ответы Просмотры Активность
1
янв. 25
3649
1
нояб. 22
2043
1
окт. 22
2772
0
янв. 22
3121
0
июл. 16
6033