Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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. 

Avatar
Buang

Put your check at the time of save

Penulis

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

Post Terkait Replies Tampilan Aktivitas
1
Jul 19
7078
6
Jul 24
45875
2
Apr 20
4187
2
Nov 19
3328
1
Nov 17
4390