details: https://code.tryton.org/tryton/commit/178b773d3cd6
branch: default
user: Cédric Krier <[email protected]>
date: Thu May 07 13:30:46 2026 +0200
description:
Set filename extension to jpg for product image
Closes #13334
diffstat:
modules/product_image/product.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r c252f163b297 -r 178b773d3cd6 modules/product_image/product.py
--- a/modules/product_image/product.py Thu May 07 13:29:48 2026 +0200
+++ b/modules/product_image/product.py Thu May 07 13:30:46 2026 +0200
@@ -128,7 +128,8 @@
class _ImageMixin:
__slots__ = ()
image = fields.Binary(
- "Image", file_id=file_id, store_prefix=store_prefix, required=True)
+ "Image", required=True, filename_ext='jpg',
+ file_id=file_id, store_prefix=store_prefix)
image_id = fields.Char("Image ID", readonly=True)