تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
53560 أدوات العرض

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
ديسمبر 17
3839
1
يونيو 15
6736
1
ديسمبر 24
1291
login form تم الحل
1
نوفمبر 23
1602
1
أغسطس 22
4113