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

Hello I would like to know is there an attribute that allows me to block a field after another is written, that is, it is not written in it if another is true

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

You can make it read only based on the condition: attrs="{'readonly': [('another_field', '=', False)]}"


Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
مايو 24
6040
2
مايو 24
3908
1
سبتمبر 15
5491
3
مارس 15
15620
3
مايو 25
1640