コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6537 ビュー

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
30644
1
11月 23
3156
1
4月 22
7006
0
7月 15
4201
1
11月 15
10232