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

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?

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

Thanks Axel,


is there an option to do this without changing core code?

Ralf

Câu trả lời hay nhất

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')


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

In case of a field set to tracking=True, all html code will be displayed in the history.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 17
3629
1
thg 6 15
6566
1
thg 12 24
1055
login form Đã xử lý
1
thg 11 23
1466
1
thg 8 22
3858