Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
53627 Visualizzazioni

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
Abbandona
Autore

Thanks Axel,


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

Ralf

Risposta migliore

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
Abbandona

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

Post correlati Risposte Visualizzazioni Attività
0
dic 17
3862
1
giu 15
6764
1
dic 24
1304
login form Risolto
1
nov 23
1610
1
ago 22
4129