I am trying to fetch product images from my Odoo instance using the JSON-RPC method. I am working with the product.image or product.template models, and I want to retrieve the image_1920 field for each product.
product_data = {
"jsonrpc": "2.0",
"method": "call",
"params": {
"service": "object",
"method": "execute_kw",
"args": [
DB, uid, PASSWORD, "product.template", "search_read",
[[]], # Empty list means no filter, fetch all products
{"fields": ["id", "name", "list_price", "image_1920", "description", "categ_id",]}
]
},
"id": 2
}
print("product_data", product_data)