コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
1723 ビュー

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
6月 24
1244
1
5月 24
1427
0
9月 19
15416
0
7月 25
383
2
7月 25
35