跳至內容
選單
此問題已被標幟
1 回覆
4177 瀏覽次數

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?

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
9月 25
266
3
8月 25
361
4
8月 25
1507
Block sale. 已解決
3
8月 25
536
2
8月 25
629