Skip to Content
मेन्यू
This question has been flagged

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
Discard

Put your check at the time of save

Author

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

Related Posts Replies Views Activity
1
जुल॰ 19
7096
6
जुल॰ 24
45897
2
अप्रैल 20
4194
2
नव॰ 19
3330
1
नव॰ 17
4399