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

How to make a custom domain such as on my sales order line i want to restrain my final user to the children of my customer?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

1) Add a field M20 in the list and form view of my sale order line

2) Place the field customer (order_partner_id) in the sale order line form. If it is not the case, the domain will never work.

3) Make a domain on my field in 1. Pay attention, because studio will only write [["partner_id","=","order_partner_id"]] but it should [["partner_id","=",order_partner_id]]
So in order to change 3 part of the domain, you have to adapt that manually in the sale order line form.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 23
3059
1
thg 9 21
3555
1
thg 2 24
3181
1
thg 4 21
8176
2
thg 10 24
2951