Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
11055 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

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

Thanks

Awatar
Odrzuć
Autor

This worked, thank you!

Najlepsza odpowiedź

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

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
1
sty 25
3969
1
lis 22
2391
1
paź 22
3019
0
sty 22
3402
0
lip 16
6316