From 220f9b30cc60c53e52df528d5c71049a4db70c15 Mon Sep 17 00:00:00 2001 From: Sanket Brahmbhatt Date: Thu, 18 May 2023 13:21:18 +0000 Subject: [PATCH] [FIX] account_edi_ubl_cii: ignore exception error in sentry 'Error while converting to PDF/A' log error is generated when the user uploads the files and that file could' t convert PDF to PDF-A. we stop catching exception in sentry. sentry-4172828056 closes odoo/odoo#122555 X-original-commit: 1c0418f00a8111058465e95dfedec1b8d6200e60 Signed-off-by: Quentin De Paoli Signed-off-by: Sanket Brahmbhatt (sabr) --- addons/account_edi_ubl_cii/models/account_move_send.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account_edi_ubl_cii/models/account_move_send.py b/addons/account_edi_ubl_cii/models/account_move_send.py index 4c20056a663..833806db377 100644 --- a/addons/account_edi_ubl_cii/models/account_move_send.py +++ b/addons/account_edi_ubl_cii/models/account_move_send.py @@ -169,6 +169,7 @@ class AccountMoveSend(models.Model): try: writer.convert_to_pdfa() except Exception as e: + e.sentry_ignored = True _logger.exception("Error while converting to PDF/A: %s", e) # Extra metadata to be Factur-x PDF-A compliant.