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

Hi,


Right now I could specify one or more suppliers for a product. Things are fine if I choose the right supplier for the product. However if I choose a wrong supplier for a product, odoo automatically adds the supplier to the list of suppliers for the product. 


Is there a way to avoid this and limit the product to be ordered only from the pre-defined supplier. 


Thank you,

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

Either override that particular method which calls supplier_add if the new supplier has given or Try to validate constraints for the supplier. 

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

Thank you for the response. 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 4 24
6360
6
thg 10 15
5399
0
thg 3 15
5085
1
thg 3 15
6001
2
thg 3 15
5201