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

Been looking at how to enable code view (which used to be symbolised by > in the old editor) however I can't find any way to use it with the new HTML field on version 15.


Did anyone find how to use it? A major feature of the editor is just to remove.

Avatar
Descartar
Mejor respuesta

Hi,

Add the following with the html field in odoo 15:  options="{'codeview': true}"

Thanks

Avatar
Descartar
Autor

This worked, thank you!

Mejor respuesta

Hello Levi Bensley,

If you want to use HTML editor on any particular field, use an HTML widget.

Find  Example in Comment.


Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Descartar

Example:
In XML file,
<field name="html_field" widget="html"/>

Publicaciones relacionadas Respuestas Vistas Actividad
1
ene 25
3695
1
nov 22
2121
1
oct 22
2800
0
ene 22
3184
0
jul 16
6075