```
for product in self.env['product.product'].search([('type','=','product'),('sale_ok','=',True)]):
product_qty_available = self.env['product.product'].browse(product.id)
qty_available = product_qty_available.with_context({'to_date': last_date_of_month,'company_id':comp_id}).qty_available
```
this query return me current company data not user selection company data
where i'm wrong
what will i use sudo or else or is it possible or not ?
note comp_id is user selected company id