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

In a website view we used the attribute t-field to print the value of one field to format the value (so we won't use t-esc or something else). For example:

 <span t-field="o.somefloatvalue" />

If you click at the top on edit and change this value then the value is changed in the webpage/view and also in the record itself (which we don't want!!!).

Is it possible to disable the editing of such values in the frontend editor?

아바타
취소
베스트 답변

Give attribute contentEditable = "False" to element. for example : <span contentEditable="False" t-field="o.somefloatvalue"/>, now your field cannot be edited.

아바타
취소
관련 게시물 답글 화면 활동
3
7월 23
30728
1
11월 23
3214
1
4월 22
7068
0
7월 15
4250
1
11월 15
10278