From 6caca7bb5bd260d882665db567bac513b3dec4ab Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Mon, 6 May 2019 08:59:52 +0000 Subject: [PATCH] FIX] website_sale: autoconfirm free SO For now the SO made with an amount of 0, are not automatically velidated as there are no transactions. To avoid this problem, we are calling actionn_confirm on the order with amount 0. closes odoo/odoo#33176 Signed-off-by: pimodoo --- addons/website_sale/controllers/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website_sale/controllers/main.py b/addons/website_sale/controllers/main.py index 3411fb3e3b9..2888b7c6e86 100644 --- a/addons/website_sale/controllers/main.py +++ b/addons/website_sale/controllers/main.py @@ -970,6 +970,7 @@ class WebsiteSale(ProductConfiguratorController): return request.redirect('/shop') if order and not order.amount_total and not tx: + order.with_context(send_email=True).action_confirm() return request.redirect(order.get_portal_url()) # clean context and session, then redirect to the confirmation page