Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
53188 Переглядів

We are looking how we can format product descriptions and similar fields with html-tags line line breaks paragraphs unordered lists. Is there an option to add a HTML editor for such fields in Odoo 8?

Аватар
Відмінити
Автор

Thanks Axel,


is there an option to do this without changing core code?

Ralf

Найкраща відповідь

Yes there is, just set the widget="html" in the field definition on the view like:

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

or

Define the field in the model like:

description = fields.Html('Description')


Аватар
Відмінити

In case of a field set to tracking=True, all html code will be displayed in the history.

Related Posts Відповіді Переглядів Дія
0
груд. 17
3668
1
черв. 15
6588
1
груд. 24
1083
login form Вирішено
1
лист. 23
1498
1
серп. 22
3890