From 5272cae62e0af514a3ca076e52bbb23cac129b27 Mon Sep 17 00:00:00 2001 From: "Antoine (ande)" Date: Tue, 16 May 2023 12:11:16 +0000 Subject: [PATCH] [FIX] website_sale_stock_wishlist: add to cart Current behaviour: When activating "Prevent Sale of Zero Priced Product", zero priced products could still be added to cart, using the wishlist. Expected behaviour: Zero priced products should not be added to cart Steps to reproduce: 1. Activate the setting "Prevent Sale of Zero Priced Product" 2. Create a product with a sales price of zero 3. Go on the product selling page, cannot be added to cart 4. Add the product to your wishlist 5. Go in the wishlist 6. The product can be added to the cart Cause of the issue: add_to_cart_button was overriden Fix: Added condition on override opw-3283057 closes odoo/odoo#122618 X-original-commit: 37ae328e34a964e6daa31193e856322ccd59f597 Signed-off-by: Antoine Vandevenne (anv) --- .../views/website_sale_stock_wishlist_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale_stock_wishlist/views/website_sale_stock_wishlist_templates.xml b/addons/website_sale_stock_wishlist/views/website_sale_stock_wishlist_templates.xml index 5facd9831a0..d6767fc2ca6 100644 --- a/addons/website_sale_stock_wishlist/views/website_sale_stock_wishlist_templates.xml +++ b/addons/website_sale_stock_wishlist/views/website_sale_stock_wishlist_templates.xml @@ -46,7 +46,7 @@ -