Skip to Content
Menu
This question has been flagged
1 Odpoveď
53437 Zobrazenia

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
Zrušiť
Autor

Thanks Axel,


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

Ralf

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
Zrušiť

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

Related Posts Replies Zobrazenia Aktivita
0
dec 17
3804
1
jún 15
6694
1
dec 24
1235
1
nov 23
1579
1
aug 22
4052