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
53306 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
3709
1
cze 15
6637
1
gru 24
1134
login form Rozwiązane
1
lis 23
1556
1
sie 22
3948