Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5321 Представления

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. 

Аватар
Отменить

Put your check at the time of save

Автор

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

Related Posts Ответы Просмотры Активность
1
июл. 19
7140
6
июл. 24
46036
2
апр. 20
4224
2
нояб. 19
3352
1
нояб. 17
4440