From dea9cea51665a5b2f52e5cf298320146ed12bd78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 30 Apr 2024 12:58:04 +0200 Subject: [PATCH] Add description for image Closes #13226 --- modules/product_image/CHANGELOG | 1 + modules/product_image/product.py | 2 ++ modules/product_image/view/category_image_form.xml | 3 +++ modules/product_image/view/category_image_list.xml | 1 + modules/product_image/view/image_form.xml | 3 +++ modules/product_image/view/image_list.xml | 1 + 6 files changed, 11 insertions(+) diff --git a/modules/product_image/CHANGELOG b/modules/product_image/CHANGELOG index 7d150a401b..f9f3866e6b 100644 --- a/modules/product_image/CHANGELOG +++ b/modules/product_image/CHANGELOG @@ -1,3 +1,4 @@ +* Add description for image Version 7.2.0 - 2024-04-29 -------------------------- diff --git a/modules/product_image/product.py b/modules/product_image/product.py index e06c6f8e76..a515bf8087 100644 --- a/modules/product_image/product.py +++ b/modules/product_image/product.py @@ -116,6 +116,8 @@ class ImageMixin(_ImageMixin): __slots__ = () cache = None + description = fields.Char("Description", translate=True) + @classmethod def allowed_match_keys(cls): return set() diff --git a/modules/product_image/view/category_image_form.xml b/modules/product_image/view/category_image_form.xml index 22ccd8689d..282f561696 100644 --- a/modules/product_image/view/category_image_form.xml +++ b/modules/product_image/view/category_image_form.xml @@ -13,5 +13,8 @@ this repository contains the full copyright notices and license terms. -->