From d06fcffe1d4d2222751ab1831989895374c590cb Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Mon, 26 Nov 2018 13:09:27 +0000 Subject: [PATCH] [IMP] website_sale: ability to set a cover (or other building block) in /shop/category/X This commit closes #29045 --- addons/website_sale/models/product.py | 1 + addons/website_sale/views/templates.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/addons/website_sale/models/product.py b/addons/website_sale/models/product.py index 727775b9027..d1ddf51c581 100644 --- a/addons/website_sale/models/product.py +++ b/addons/website_sale/models/product.py @@ -68,6 +68,7 @@ class ProductPublicCategory(models.Model): # buttons have consistent styling. # In this case, the default image is set by the js code. image = fields.Binary(attachment=True, help="This field holds the image used as image for the category, limited to 1024x1024px.") + website_description = fields.Html('Category Description', sanitize_attributes=False, translate=html_translate) image_medium = fields.Binary(string='Medium-sized image', attachment=True, help="Medium-sized image of the category. It is automatically " "resized as a 128x128px image, with aspect ratio preserved. " diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index e5c04dfbfc1..f773eca5a81 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -203,6 +203,9 @@
+
+
+