Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
10648 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

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

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

This worked, thank you!

คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 25
3649
1
พ.ย. 22
2041
delete the value of the taxes_id field แก้ไขแล้ว
1
ต.ค. 22
2772
0
ม.ค. 22
3119
0
ก.ค. 16
6030