Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
10709 Visninger

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
Kassér
Bedste svar

Hi,

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

Thanks

Avatar
Kassér
Forfatter

This worked, thank you!

Bedste svar

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
Kassér

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

Related Posts Besvarelser Visninger Aktivitet
1
jan. 25
3680
1
nov. 22
2107
1
okt. 22
2797
0
jan. 22
3175
0
jul. 16
6065