Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5554 Visualizzazioni

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
Abbandona

Put your check at the time of save

Autore

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

Post correlati Risposte Visualizzazioni Attività
1
lug 19
7331
6
lug 24
46598
2
apr 20
4411
2
nov 19
3545
1
nov 17
4643