Skip to Content
Menu
This question has been flagged
2 Replies
52854 Views

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
Discard
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
Discard

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

Author Best Answer

Thanks Axel,


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

Ralf

Avatar
Discard
Related Posts Replies Views Activity
0
Dec 17
3563
1
Jun 15
6496
1
Dec 24
991
1
Nov 23
1384
1
Aug 22
3784