Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
10670 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

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

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

This worked, thank you!

Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
3654
1
thg 11 22
2053
1
thg 10 22
2775
0
thg 1 22
3133
0
thg 7 16
6037