diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index a92d0b7ea22..57d5c570428 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -521,7 +521,10 @@ class AccountInvoice(models.Model): self.delete_workflow() self.create_workflow() # Delete former printed invoice - report_invoice = self.env['report']._get_report_from_name('account.report_invoice') + try: + report_invoice = self.env['report']._get_report_from_name('account.report_invoice') + except IndexError: + report_invoice = False if report_invoice: for invoice in self: with invoice.env.do_in_draft():