Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
10511 Vues

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
Ignorer
Meilleure réponse

Hi,

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

Thanks

Avatar
Ignorer
Auteur

This worked, thank you!

Meilleure réponse

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
Ignorer

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

Publications associées Réponses Vues Activité
1
janv. 25
3568
1
nov. 22
1944
1
oct. 22
2698
0
janv. 22
3011
0
juil. 16
5955