Skip to Content
Menu
This question has been flagged
2 Replies
8677 Views

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
Discard
Best Answer

Hi,

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

Thanks

Avatar
Discard
Author

This worked, thank you!

Best Answer

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
Discard

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

Related Posts Replies Views Activity
0
Aug 22
2624
1
Nov 22
1098
1
Oct 22
1809
0
Jan 22
2364
0
Jul 16
5238