Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
5310 Weergaven

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
Annuleer

Put your check at the time of save

Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
1
jul. 19
7130
6
jul. 24
46009
2
apr. 20
4212
2
nov. 19
3340
1
nov. 17
4429