Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
54186 Widoki

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?

Awatar
Odrzuć
Autor

Thanks Axel,


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

Ralf

Najlepsza odpowiedź

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


Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
0
gru 17
4106
1
cze 15
7020
1
gru 24
1573
login form Rozwiązane
1
lis 23
1784
1
sie 22
4400