تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5582 أدوات العرض

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
يوليو 19
7361
6
يوليو 24
46658
2
أبريل 20
4433
2
نوفمبر 19
3591
1
نوفمبر 17
4666