コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4295 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
10月 25
957
3
10月 25
483
1
9月 25
586
2
9月 25
682
3
9月 25
708