İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
10766 Görünümler

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
Vazgeç
En İyi Yanıt

Hi,

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

Thanks

Avatar
Vazgeç
Üretici

This worked, thank you!

En İyi Yanıt

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
Vazgeç

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Oca 25
3740
1
Kas 22
2149
1
Eki 22
2848
0
Oca 22
3215
0
Tem 16
6134