From cf12a41b94a1434f3dcfac762cdb7ae222efeae0 Mon Sep 17 00:00:00 2001 From: mafo-odoo Date: Thu, 30 Jun 2022 13:10:51 +0000 Subject: [PATCH] [FIX] website_sale: no tax included in snipets products Steps to reproduce: - Take a product sold on the e-commerce and add taxes - In the Website settings chose the product prices to be shown tax-included - Add the snippet "Products" Problem: The price shown on the snippet is tax-excluded while the price shown on the product page is tax-included. The price on the snippet should also be tax-included. Explanation Bug introduced by commit 9e99a9df464d97a74ca320d200599f7dce2d3050 using the _get_contextual_price ignored the option where the taxes needed to be computed. To solve the issue we create a new function that calls _get_contextual_price but also add the taxes if necessary. opw-2894461 closes odoo/odoo#96285 X-original-commit: a029aea6e332eca8abbc0591f8885afaaa223e75 Signed-off-by: William Braeckman (wbr) --- .../website_sale/data/product_snippet_template_data.xml | 2 +- addons/website_sale/models/product_product.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/addons/website_sale/data/product_snippet_template_data.xml b/addons/website_sale/data/product_snippet_template_data.xml index be90887afdc..a975fb9d97e 100644 --- a/addons/website_sale/data/product_snippet_template_data.xml +++ b/addons/website_sale/data/product_snippet_template_data.xml @@ -287,7 +287,7 @@