fields.Html() can not editable when it on the tree-view.
When it on the form-view, it works,but on the tree-view, it just readonly.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
fields.Html() can not editable when it on the tree-view.
When it on the form-view, it works,but on the tree-view, it just readonly.
This is by design in Odoo. Fields of type fields.Html are meant to be displayed as read-only in the list (tree) view and editable in the form view. This is because the HTML content can contain complex formatting and might not be easily editable in the list view. To ensure that the HTML content is displayed properly, it is displayed as read-only in the list view and can be edited in the form view.
If you want to make the field editable in the list view, you can use a different field type, such as fields.Text, which can be edited in both views. Keep in mind that the formatting options for a fields.Text field are more limited than those for a fields.Html field.
Thank you very much for your explanation.
But I really want the fields.Html() in the list-view. The fields has a format like color or newline.And sometime I need to change the content of the fields. So the fields.Text It doesn't suit me.
Is there a way to make it editable? thank you very much
it works in odoo15.
it turn to readonly in odoo16. -.-
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
ene 24
|
3454 | ||
|
1
ago 23
|
2810 | ||
|
3
abr 23
|
4595 | ||
|
1
ene 23
|
2613 | ||
|
1
feb 24
|
1737 |
I'm also concerned by this.
have you found a solution ?