跳至内容
菜单
此问题已终结
1 回复
4170 查看

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
259
3
8月 25
353
4
8月 25
1497
Block sale. 已解决
3
8月 25
533
2
8月 25
626