in odoo 15,
 request.env['product.product'].sudo().search_read([('id','=', search_id)]), used to give all the fields. 
seems like its not the same for 17. 
How can i read all the fields in odoo17 orm. 
What do i use ? search, search_read? Most importantly, how to do i get all the data?
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
            
                2
                
                    Respostes
                
            
        
        
            
                11299
                
                    Vistes
                
            
        
    Hi,
You can try this code , request.env['product.product'].search_read([], ['id'])
Regards
Hi junaid
you can get
request.env['product.product'].search_read([])
or you can find specific field using like
request.env['product.product'].search_read([],['name','id'])
Thanks
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|  | 2 de febr. 24  | 5204 | ||
|  | 0 de gen. 23  | 1810 | ||
|  | 4 d’abr. 19  | 13479 | ||
|  | 1 de gen. 25  | 1723 | ||
|  | 1 de set. 24  | 3851 | 
