Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5442 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 19
7223
6
ก.ค. 24
46333
2
เม.ย. 20
4314
2
พ.ย. 19
3440
1
พ.ย. 17
4542