Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
11012 Tampilan

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
Buang
Jawaban Terbai

Hi,

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

Thanks

Avatar
Buang
Penulis

This worked, thank you!

Jawaban Terbai

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
Buang

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

Post Terkait Replies Tampilan Aktivitas
1
Jan 25
3933
1
Nov 22
2369
1
Okt 22
2997
0
Jan 22
3383
0
Jul 16
6282