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

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?

الصورة الرمزية
إهمال
أفضل إجابة

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.

الكاتب أفضل إجابة

Thanks Axel,


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

Ralf

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
ديسمبر 17
3581
1
يونيو 15
6516
1
ديسمبر 24
1009
login form تم الحل
1
نوفمبر 23
1402
1
أغسطس 22
3804