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

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
7160
6
يوليو 24
46084
2
أبريل 20
4252
2
نوفمبر 19
3377
1
نوفمبر 17
4484