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

I need to restrict sales of certain products to a limited set of clients (who have presented legally required documentation to purchase these).

 

How can I achieve this?

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

Well... you can do it if you feel comfortable developing with OpenERP. I would create a module that:

a) Creates a many2many relationship between product.product and res.partner

b) I would modify the res.partner view so the user is able to enter the allowed products he is able to purchase

c) I would modify either the onchange_product method, or the validate method in the sale.order object in order to validate the product the client is purchasing

Hope this helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 25
283
3
thg 8 25
387
4
thg 8 25
1535
Block sale. Đã xử lý
3
thg 8 25
541
2
thg 8 25
638