Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
6541 Visualizações

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
Cancelar
Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
jul. 23
30650
1
nov. 23
3161
1
abr. 22
7007
0
jul. 15
4205
1
nov. 15
10237