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
- 会計
- 在庫
- PoS
- プロジェクト
- MRP
この質問にフラグが付けられました
            
                2
                
                    返信
                
            
        
        
            
                11414
                
                    ビュー
                
            
        
    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
| 関連投稿 | 返信 | ビュー | 活動 | |
|---|---|---|---|---|
|  | 2 2月 24  | 5306 | ||
|  | 0 1月 23  | 1832 | ||
|  | 4 4月 19  | 13513 | ||
|  | 1 1月 25  | 1778 | ||
|  | 1 9月 24  | 3926 | 
