Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
1729 Vizualizări

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.     

     

   


Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Hi K Ch Kumar,

Thank you very much. your suggestion works. 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iun. 24
1244
1
mai 24
1428
0
sept. 19
15417
0
iul. 25
389
2
iul. 25
35