콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2800 화면

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.

아바타
취소

I'm also concerned by this.

have you found a solution ?

베스트 답변

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. -.-

관련 게시물 답글 화면 활동
1
8월 25
2883
2
1월 24
3695
1
8월 23
3045
3
4월 23
4943
1
2월 24
1913