Skip to Content
Menú
This question has been flagged
2 Respostes
52917 Vistes

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?

Avatar
Descartar
Best Answer

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')


Avatar
Descartar

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

Autor Best Answer

Thanks Axel,


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

Ralf

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de des. 17
3586
1
de juny 15
6525
1
de des. 24
1017
1
de nov. 23
1428
1
d’ag. 22
3823