تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6524 أدوات العرض

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
يوليو 23
30608
1
نوفمبر 23
3145
1
أبريل 22
7000
0
يوليو 15
4194
1
نوفمبر 15
10207