Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
52900 Vistas

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
Descartar
Mejor respuesta

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
Descartar

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

Autor Mejor respuesta

Thanks Axel,


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

Ralf

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
dic 17
3583
1
jun 15
6520
1
dic 24
1012
login form Resuelto
1
nov 23
1403
1
ago 22
3808