From c427539a229e12c1d4eadb2c542b8691b256f5e8 Mon Sep 17 00:00:00 2001 From: "Loan (lse)" <lse@odoo.com> Date: Mon, 9 Aug 2021 15:28:57 +0000 Subject: [PATCH] [FIX] website_sale: missing image on ecommerce product metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit: No "image" metadata was available for products on the ecommerce main page (/shop). As such search engines SEO will be less effective. In the case of the client, using "Google Search Console" would give the message: `Missing field 'image'` as a "Top Warning" Note: This issue was introduced by: https://github.com/odoo/odoo/pull/30656 and was partially solved by: https://github.com/odoo/odoo/pull/37870/commits/c66892e65d2ae0ca31a686f65d4b517a9d7ffd0b OPW-2509546 closes odoo/odoo#74880 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com> --- addons/website_sale/views/templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 201cbb887d69..0e78b6025724 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -112,7 +112,7 @@ </div> <div class="oe_product_image"> <a itemprop="url" t-att-href="product_href"> - <span t-field="product.image" t-options="{'widget': 'image', 'resize': None if product_image_big else '300x300'}"/> + <span t-field="product.image" t-options="{'widget': 'image', 'resize': None if product_image_big else '300x300', 'itemprop': 'image'}"/> </a> </div> <t t-if="show_publish"> -- GitLab