İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
54104 Görünümler

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?

Avatar
Vazgeç
Üretici

Thanks Axel,


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

Ralf

En İyi Yanı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')


Avatar
Vazgeç

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Ara 17
4094
1
Haz 15
6991
1
Ara 24
1556
login form Çözüldü
1
Kas 23
1772
1
Ağu 22
4390