Skip to Content
Menú
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
Descartar

Put your check at the time of save

Autor

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

Related Posts Respostes Vistes Activitat
1
de jul. 19
7019
6
de jul. 24
45751
2
d’abr. 20
4117
2
de nov. 19
3279
1
de nov. 17
4333