From fe53594a33df26dc05b52e0f8181c6e0e8e73abb Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Mon, 23 Oct 2023 11:21:53 +0200 Subject: [PATCH] Allow pay and workflow_to_end when sale is in draft, quote or confirmed #162967 --- sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale.py b/sale.py index e12453f..bdbab28 100644 --- a/sale.py +++ b/sale.py @@ -285,7 +285,7 @@ class WizardSalePayment(Wizard): if sale.total_amount != sale.paid_amount: return 'start' - if sale.state != 'draft': + if sale.state not in ('draft', 'quotation', 'confirmed'): return 'end' sale.description = sale.reference