Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
327 Lượt xem

Hello Community, 

I am using Odoo Online version 18.4. Could anyone guide me on how to restrict specific products for certain customers in Sales Orders?


Regards,

Nabeel


Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks Ray for your reply, actually in this version I am not been able to see this field.

Câu trả lời hay nhất

On the Sales tab of a Product you can find a place to add a Warning on Sales Orders:


Then at the top of each Quotation and Sales Order the Warning will be shown:

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Create a record rule on the product.product model.

Example domain to restrict products per customer:


    ['|', ('customer_ids', 'in', [user.customer_id.id]), ('customer_ids', '=', False)]


Add a Many2many field on products for allowed customers (customer_ids).

Create a record rule so only products where the current SO customer is in customer_ids can be selected.


Hope it helps.

Ảnh đại diện
Huỷ bỏ