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

Hello all.

I have a read-only boolean field which must be updated if some python constraints are returning false during the save of the record.

As the instance is not stored in the database until we click the "Save" button, i can't find any way to update this field. I know i could do that on an on_change method, but i must do that precisely at that moment for some client demands and to facilitate understanding.

I hope someone can help me.

الصورة الرمزية
إهمال

Can you post your form view and say what should be done. If we can not try, it's difficult to ask you. on_change method should do the job I think. I can post answer if you give more details.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 15
3417
1
فبراير 22
6860
0
ديسمبر 21
1874
0
مارس 15
3537
2
مارس 15
6694