Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
52472 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää

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

Tekijä Paras vastaus

Thanks Axel,


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

Ralf

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
jouluk. 17
3434
1
kesäk. 15
6214
1
jouluk. 24
848
login form Ratkaistu
1
marrask. 23
1189
1
elok. 22
3506