Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5364 Lượt xem

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. 

Ảnh đại diện
Huỷ bỏ

Put your check at the time of save

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 19
7166
6
thg 7 24
46131
2
thg 4 20
4263
2
thg 11 19
3380
1
thg 11 17
4490