Allow pay and workflow_to_end when sale is in draft, quote or confirmed

#162967
This commit is contained in:
Raimon Esteve 2023-10-23 11:21:53 +02:00
parent 883fa99861
commit 286896268e
1 changed files with 1 additions and 1 deletions

View File

@ -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