Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
10657 Zobrazení

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
Zrušit
Nejlepší odpověď

Hi,

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

Thanks

Avatar
Zrušit
Autor

This worked, thank you!

Nejlepší odpověď

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
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
1
led 25
3650
1
lis 22
2043
1
říj 22
2773
0
led 22
3124
0
čvc 16
6034