Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
53423 Ansichten

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
Verwerfen
Autor

Thanks Axel,


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

Ralf

Beste Antwort

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
Verwerfen

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Dez. 17
3799
1
Juni 15
6692
1
Dez. 24
1224
login form Gelöst
1
Nov. 23
1578
1
Aug. 22
4043