This question has been flagged
1 Reply
3625 Views

My Question is That
if i have A product it's actually have 10 stock only for A1 POS ...Not for other POS ..
i want to show this product only ine A1 POS not else....

some specifice product for some specific point of sale

Avatar
Discard
Best Answer

Usman,

U need to have some field(can be a many2one to pos.config) in products which you can use to identify the  POS to which this product belongs to while loading.

then, in point_of_sale/static/src/js/models.js, under 'models' array-of-objects for 'product.product' model you can pass some 'unique identifier' in context.

After all override the search method of product.product and if you found that 'unique identifier' in context(or self.env.context (for new api) ) then filter the products on basis of your pos.config many2one field defined in product.

Avatar
Discard