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

I want to stop user from adding new line in one2many field.  

but with an twist that only if this record has certain type (Any domain, eg:   type=available & is_new_lead = true)

how to achieve this ?  

As we can not pass domain to the create attribute. we can only pass create=true or create=false.


Thanks in Advance. 


Update: Can not use raise warning on record save, Due to some status and logic concern. 

アバター
破棄

Put your check at the time of save

著作者

Hello @usman I can not use raise warning due to our some logic.

関連投稿 返信 ビュー 活動
1
7月 19
7166
6
7月 24
46131
2
4月 20
4263
2
11月 19
3380
1
11月 17
4490