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

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?

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

Thanks Axel,


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

Ralf

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

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ธ.ค. 17
3842
1
มิ.ย. 15
6741
1
ธ.ค. 24
1294
login form แก้ไขแล้ว
1
พ.ย. 23
1603
1
ส.ค. 22
4114