Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4186 Представления

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
сент. 25
273
3
авг. 25
374
4
авг. 25
1514
Block sale. Решено
3
авг. 25
540
2
авг. 25
636