Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5326 Vizualizări

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. 

Imagine profil
Abandonează

Put your check at the time of save

Autor

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

Related Posts Răspunsuri Vizualizări Activitate
1
iul. 19
7143
6
iul. 24
46045
2
apr. 20
4230
2
nov. 19
3362
1
nov. 17
4446