-
- Downloads
[IMP] base,product,website_sale,*: improve product images
* = account, purchase, website_sale_comparison, website_sale_wishlist Raw Image & Mixin ================= Previously, the main image from a product was stored resized. This caused inconsistencies with the size of the images on ecommerce: the main image was resized, but the extra images were not. Now, we always store all raw images, thanks to the new mixin. This way, product images that were created before the installation of ecommerce will be ready to be used in ecommerce without any other change. We also store the resized versions instead of computing them on the fly: this will take more disk space, but significantly increase the speed of the pages when displaying images, as well as reduce server CPU load. Images on variants ================== Previously, it was only possible to set the extra product images on a template, and not on a variant. Now, we allow extra images also on the variants, this gives more flexibility to the user. Both extra images on template and variant have been given a sequence field to be able to sort them easily. On /shop we always display the image of the template for performance reasons. On /product we never display the image of the template, unless the variant has no image, then the template image is the fallback. Carousel ======== The carousel view has been cleaned and improved: - remove the duplicate XML that was created with the product configurator fix - use a single loop from a single source to get all the images, instead of merging the different sources in the view with complex conditions - improve the HTML structure, reduce the CSS with appropriate classes Preview Image ============= Both in website and backend: make better use of `preview_image` to display a small image whenever possible, to reduce download size for the end user. task-34045 PR: #30656 Co-authored-by:Parth Gajjar <pga@odoo.com> Co-authored-by:
Sébastien Theys <seb@odoo.com>
Showing
- addons/account/models/account_invoice.py 0 additions, 1 deletionaddons/account/models/account_invoice.py
- addons/product/models/product.py 21 additions, 56 deletionsaddons/product/models/product.py
- addons/product/models/product_template.py 1 addition, 19 deletionsaddons/product/models/product_template.py
- addons/product/views/product_views.xml 2 additions, 2 deletionsaddons/product/views/product_views.xml
- addons/purchase/models/purchase.py 0 additions, 3 deletionsaddons/purchase/models/purchase.py
- addons/sale/models/sale.py 0 additions, 3 deletionsaddons/sale/models/sale.py
- addons/website_sale/controllers/main.py 4 additions, 4 deletionsaddons/website_sale/controllers/main.py
- addons/website_sale/data/mail_template_data.xml 1 addition, 1 deletionaddons/website_sale/data/mail_template_data.xml
- addons/website_sale/models/__init__.py 1 addition, 0 deletionsaddons/website_sale/models/__init__.py
- addons/website_sale/models/product.py 41 additions, 7 deletionsaddons/website_sale/models/product.py
- addons/website_sale/models/product_image.py 19 additions, 0 deletionsaddons/website_sale/models/product_image.py
- addons/website_sale/static/src/js/website_sale.js 20 additions, 11 deletionsaddons/website_sale/static/src/js/website_sale.js
- addons/website_sale/static/src/js/website_sale_tour_shop_custom_attribute_value.js 3 additions, 3 deletions...c/src/js/website_sale_tour_shop_custom_attribute_value.js
- addons/website_sale/static/src/scss/website_sale.scss 21 additions, 39 deletionsaddons/website_sale/static/src/scss/website_sale.scss
- addons/website_sale/static/src/scss/website_sale_backend.scss 18 additions, 40 deletions...ns/website_sale/static/src/scss/website_sale_backend.scss
- addons/website_sale/views/product_views.xml 66 additions, 43 deletionsaddons/website_sale/views/product_views.xml
- addons/website_sale/views/templates.xml 23 additions, 69 deletionsaddons/website_sale/views/templates.xml
- addons/website_sale_comparison/views/website_sale_comparison_template.xml 1 addition, 1 deletion...ale_comparison/views/website_sale_comparison_template.xml
- addons/website_sale_wishlist/views/website_sale_wishlist_template.xml 1 addition, 1 deletion...te_sale_wishlist/views/website_sale_wishlist_template.xml
- odoo/addons/base/models/__init__.py 3 additions, 0 deletionsodoo/addons/base/models/__init__.py
Loading
Please register or sign in to comment