Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
53523 Zobrazení

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
Zrušit
Autor

Thanks Axel,


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

Ralf

Nejlepší odpověď

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
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
0
pro 17
3820
1
čvn 15
6708
1
pro 24
1276
login form Vyřešeno
1
lis 23
1597
1
srp 22
4084