Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
53637 Vues

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

Thanks Axel,


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

Ralf

Meilleure réponse

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
Ignorer

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

Publications associées Réponses Vues Activité
0
déc. 17
3864
1
juin 15
6767
1
déc. 24
1304
login form Résolu
1
nov. 23
1610
1
août 22
4131