Lucas Perais
ccddb8a36f
[FIX] base: ir_qweb_field:image: handle webp mimetype
...
See discussions on https://github.com/odoo/odoo/pull/85494/ .
TLDR: webp image format needs to be supported, but we should avoid
going through the Pillow library as it is largely unsafe for that format.
jpg attachment are created in JS at upload time.
Wkhtmltopdf doesn't support webp, so, in reports, we should display one of those jpg copies.
This work is handled by `ir.qweb: _get_converted_image_data_uri` which is used as:
```xml
<img src="image_data_uri(some_b64value)" />
```
The mentioned PR did not however adapt the ir.qweb.field.image that, when passed the option `qweb_img_raw_data`
should return a base64 url such as `data:[mimetype],base64,[datas]`.
usage:
```xml
<span t-field="object.image_field" t-options-widget="'image'" t-options-qweb_img_raw_data="1" />
```
Hence, before this commit, there was a crash as we tried to pass that value to PIL.
After this commit, there is no crash, and the image displays correctly as JPG in the PDF
opw-3859423
closes odoo/odoo#163003
X-original-commit: 9056a4b1f28e820c0444f28367cc30abebd5ea30
Signed-off-by: Benoit Socias (bso) <bso@odoo.com >
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com >
2024-04-29 08:07:25 +00:00
..
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-29 08:07:23 +00:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-09 07:22:43 +00:00
2024-04-09 19:35:41 +00:00
2024-04-18 16:38:24 +00:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-24 09:28:15 +00:00
2024-02-29 20:40:36 +00:00
2024-03-07 11:40:25 +00:00
2024-04-11 16:43:19 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-04-22 11:51:27 +00:00
2024-04-23 17:09:48 +00:00
2024-02-29 20:40:36 +00:00
2024-04-23 17:09:48 +00:00
2024-04-18 11:18:46 +00:00
2024-03-22 03:11:48 +00:00
2024-04-09 23:14:46 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-03-21 11:11:41 +00:00
2024-04-23 17:09:48 +00:00
2024-03-29 10:44:21 +00:00
2024-04-23 17:09:48 +00:00
2024-04-26 08:22:47 +00:00
2024-03-21 23:03:07 +00:00
2024-04-23 13:38:50 +00:00
2024-04-20 01:36:02 +00:00
2024-02-23 13:10:03 +00:00
2024-02-28 08:15:23 +00:00
2024-03-13 09:14:14 +00:00
2024-02-23 13:10:03 +00:00
2024-02-29 20:40:36 +00:00
2024-04-24 07:55:44 +00:00
2024-03-26 13:35:53 +00:00
2024-04-28 21:01:06 +00:00
2024-03-26 22:20:21 +00:00
2024-04-11 15:02:49 +00:00
2024-04-16 07:02:58 +00:00
2024-03-29 15:35:03 +00:00
2024-04-26 08:22:54 +00:00
2024-03-07 15:12:17 +00:00
2024-03-08 11:17:48 +00:00
2024-04-22 13:39:47 +00:00
2024-04-26 17:17:56 +00:00
2024-04-23 17:09:48 +00:00
2024-02-23 13:09:53 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-03-07 05:07:08 +00:00
2024-02-29 20:40:36 +00:00
2024-04-21 18:14:37 +00:00
2024-02-29 20:40:36 +00:00
2024-04-26 08:22:53 +00:00
2024-04-10 20:56:59 +00:00
2024-03-04 08:11:57 +00:00
2024-04-08 11:13:51 +00:00
2024-04-15 09:10:18 +00:00
2024-04-17 22:47:07 +00:00
2024-03-22 09:44:38 +00:00
2024-04-20 17:39:55 +00:00
2024-04-22 08:27:09 +00:00
2024-03-13 14:03:10 +00:00
2024-04-14 21:02:42 +00:00
2024-04-23 17:09:48 +00:00
2024-04-09 15:06:45 +00:00
2024-03-31 00:33:23 +00:00
2024-04-23 17:09:48 +00:00
2024-02-29 20:40:36 +00:00
2024-04-02 12:09:28 +00:00
2024-03-14 08:06:26 +00:00
2024-02-22 09:06:12 +00:00
2024-04-10 11:45:53 +00:00
2024-04-23 17:09:48 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-03-06 14:30:37 +00:00
2024-03-11 16:37:32 +00:00
2024-04-04 08:18:55 +00:00
2024-03-15 17:30:00 +00:00
2024-04-24 07:55:44 +00:00
2024-03-11 10:17:46 +00:00
2024-04-26 08:22:49 +00:00
2024-02-29 20:40:36 +00:00
2024-04-27 09:25:41 +00:00
2024-03-22 14:47:57 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-03-21 23:03:07 +00:00
2024-04-23 17:09:48 +00:00
2024-04-26 17:18:01 +00:00
2024-04-23 17:09:48 +00:00
2024-04-23 17:09:48 +00:00
2024-03-13 14:03:11 +00:00
2024-04-11 08:12:51 +00:00
2024-04-22 11:51:23 +00:00
2024-03-06 14:30:35 +00:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-03-11 16:37:34 +00:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-03-07 08:25:54 +00:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-03-12 16:59:03 +00:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-29 06:25:12 +00:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-05 12:18:14 +00:00
2024-04-28 00:10:20 +02:00
2024-02-27 17:40:50 +00:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-03-22 11:20:04 +00:00
2024-03-28 12:19:04 +00:00
2024-03-13 09:14:09 +00:00
2024-04-17 22:47:19 +00:00
2024-04-17 22:47:19 +00:00
2024-04-17 22:47:19 +00:00
2024-04-17 22:47:19 +00:00
2024-04-07 10:03:48 +00:00
2024-02-19 15:02:20 +00:00
2024-03-29 09:12:17 +00:00
2024-02-26 21:22:46 +00:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-29 08:07:25 +00:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00
2024-04-28 00:10:20 +02:00