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

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
3863
1
июн. 15
6767
1
дек. 24
1304
login form Решено
1
нояб. 23
1610
1
авг. 22
4131