Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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. 

Awatar
Odrzuć

Put your check at the time of save

Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
1
lip 19
7092
6
lip 24
45891
2
kwi 20
4191
2
lis 19
3329
1
lis 17
4397