Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
53229 Visualizações

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

Thanks Axel,


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

Ralf

Melhor resposta

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
Cancelar

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

Publicações relacionadas Respostas Visualizações Atividade
0
dez. 17
3685
1
jun. 15
6604
1
dez. 24
1097
login form Resolvido
1
nov. 23
1507
1
ago. 22
3904