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

Hi all,

I want to hide the page of "Measurement Setting" when the field "test_type_id != 5". this setting works. If "test_type_id ==5" I want the user to enter values in "measure_data_ids" (o2m field). 

The problem is that "required ="test_type_id ==5" does not do the job. User can save the record with an empty "measure_data_id". Please correct me.     

     

   


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

you can add a constraint to check if the o2m is empty. So that if test_type_id==5 and length of o2m is 0, you can raise an error to stop the record in saving.

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

Hi K Ch Kumar,

Thank you very much. your suggestion works. 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يونيو 24
1244
1
مايو 24
1426
0
سبتمبر 19
15416
0
يوليو 25
383
2
يوليو 25
35