Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6533 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lip 23
30639
1
lis 23
3151
1
kwi 22
7006
0
lip 15
4199
1
lis 15
10226