Add description for image

Closes #13226
This commit is contained in:
Cédric Krier
2024-04-30 12:58:04 +02:00
parent d3e9f3ac5f
commit dea9cea516
6 changed files with 11 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
* Add description for image
Version 7.2.0 - 2024-04-29
--------------------------
+2
View File
@@ -116,6 +116,8 @@ class ImageMixin(_ImageMixin):
__slots__ = ()
cache = None
description = fields.Char("Description", translate=True)
@classmethod
def allowed_match_keys(cls):
return set()
@@ -13,5 +13,8 @@ this repository contains the full copyright notices and license terms. -->
<label name="category"/>
<field name="category"/>
<label name="description"/>
<field name="description"/>
</group>
</form>
@@ -4,4 +4,5 @@ this repository contains the full copyright notices and license terms. -->
<tree sequence="sequence">
<field name="category" expand="1"/>
<field name="image" expand="2"/>
<field name="description" expand="1" optional="1"/>
</tree>
@@ -16,5 +16,8 @@ this repository contains the full copyright notices and license terms. -->
<label name="product"/>
<field name="product"/>
<label name="description"/>
<field name="description"/>
</group>
</form>
@@ -5,4 +5,5 @@ this repository contains the full copyright notices and license terms. -->
<field name="template" expand="1"/>
<field name="product" expand="1"/>
<field name="image" expand="2"/>
<field name="description" expand="1" optional="1"/>
</tree>