Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
10533 Visualizzazioni

Been looking at how to enable code view (which used to be symbolised by > in the old editor) however I can't find any way to use it with the new HTML field on version 15.


Did anyone find how to use it? A major feature of the editor is just to remove.

Avatar
Abbandona
Risposta migliore

Hi,

Add the following with the html field in odoo 15:  options="{'codeview': true}"

Thanks

Avatar
Abbandona
Autore

This worked, thank you!

Risposta migliore

Hello Levi Bensley,

If you want to use HTML editor on any particular field, use an HTML widget.

Find  Example in Comment.


Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Abbandona

Example:
In XML file,
<field name="html_field" widget="html"/>

Post correlati Risposte Visualizzazioni Attività
1
gen 25
3576
1
nov 22
1946
1
ott 22
2705
0
gen 22
3016
0
lug 16
5962