Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
6432 Tampilan

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?

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Jul 23
30376
1
Nov 23
3094
1
Apr 22
6836
0
Jul 15
4135
1
Nov 15
10061