minor fix

This commit is contained in:
wilsongomez 2022-04-01 08:43:11 -05:00
parent 91ecb9d217
commit 0d34903250
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ class FinishInvoices(Wizard):
if channel_id != channel.id:
continue
Invoice.validate_invoice([inv])
if inv.invoice_type not in ('C', 'P', 'M'):
if inv.invoice_type not in ('C', 'P', 'M') and inv.electronic_state != 'authorized':
Invoice.submit([inv])
if not inv.cufe:
return