Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4181 มุมมอง

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
266
3
ส.ค. 25
362
How to merge companies แก้ไขแล้ว
4
ส.ค. 25
1507
Block sale. แก้ไขแล้ว
3
ส.ค. 25
536
2
ส.ค. 25
629