We are looking how we can format product descriptions and similar fields with html-tags line line breaks paragraphs unordered lists. Is there an option to add a HTML editor for such fields in Odoo 8?
此問題已被標幟
1
回覆
57011
瀏覽次數
Yes there is, just set the widget="html" in the field definition on the view like:
<field name="description" widget="html"/>
or
Define the field in the model like:
description = fields.Html('Description')In case of a field set to tracking=True, all html code will be displayed in the history.
| 相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
|---|---|---|---|---|
|
|
0
12月 17
|
5564 | ||
|
|
1
6月 15
|
8435 | ||
|
|
1
12月 24
|
3090 | ||
|
login form
已解決
|
|
1
11月 23
|
2814 | |
|
|
1
8月 22
|
5929 |
Thanks Axel,
is there an option to do this without changing core code?
Ralf