Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
53535 Prikazi

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
Opusti
Avtor

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
Opusti

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

Related Posts Odgovori Prikazi Aktivnost
0
dec. 17
3826
1
jun. 15
6716
1
dec. 24
1279
1
nov. 23
1600
1
avg. 22
4096