Hi, i need to send images to an external app and they only accept well formed img urls, /web/example.jpg for example, how can i achieve this with my binary product images?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2
Replies
1804
Views
Hi Yasim Mirabal,
Please refer the following code. Hope this will help you.
base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url')
image_url_1920 = base_url + '/web/image?' + 'model=product_product&id=' + str(rec.id) + '&field=image_1920'
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up