Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
1857 Visualizzazioni

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.     

     

   


Avatar
Abbandona
Risposta migliore

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.

Avatar
Abbandona
Autore Risposta migliore

Hi K Ch Kumar,

Thank you very much. your suggestion works. 

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
giu 24
1429
1
mag 24
1578
0
set 19
15552
0
lug 25
632
2
lug 25
36