[IMP] website_sale: ability to set a cover (or other building block) in /shop/category/X

This commit closes #29045
This commit is contained in:
Fabien Pinckaers
2018-11-27 15:49:43 +00:00
committed by Jeremy Kersten
parent 52c3836780
commit d06fcffe1d
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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. "
+3
View File
@@ -203,6 +203,9 @@
<div class="row mt-3">
<div class="d-none" id="products_grid_before"></div>
<div class="col-lg-12" id="products_grid">
<div t-if="category" class="mb16" id="category_header">
<div t-field="category.website_description"/>
</div>
<table width="100%">
<tbody>
<tr t-ignore="true">