Skip to Content
Menu
This question has been flagged
1 Atsakyti
53522 Rodiniai

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?

Portretas
Atmesti
Autorius

Thanks Axel,


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

Ralf

Best Answer

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


Portretas
Atmesti

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

Related Posts Replies Rodiniai Veikla
0
gruod. 17
3820
1
birž. 15
6707
1
gruod. 24
1276
1
lapkr. 23
1597
1
rugp. 22
4083