Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4535 Zobrazení

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
Zrušit

Put your check at the time of save

Autor

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

Related Posts Odpovědi Zobrazení Aktivita
1
čvc 19
6580
6
čvc 24
44263
2
dub 20
3625
2
lis 19
2715
1
lis 17
3805