Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4192 Weergaven

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?

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
sep. 25
279
3
aug. 25
387
4
aug. 25
1534
Block sale. Opgelost
3
aug. 25
541
2
aug. 25
637