跳至內容
選單
此問題已被標幟
2 回覆
10713 瀏覽次數

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"/>

相關帖文 回覆 瀏覽次數 活動
1
1月 25
3681
1
11月 22
2115
1
10月 22
2797
0
1月 22
3177
0
7月 16
6068