Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
53305 Weergaven

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
Annuleer
Auteur

Thanks Axel,


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

Ralf

Beste antwoord

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
Annuleer

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
dec. 17
3709
1
jun. 15
6637
1
dec. 24
1134
login form Opgelost
1
nov. 23
1556
1
aug. 22
3948