diff --git a/addons/account_edi/models/account_edi_format.py b/addons/account_edi/models/account_edi_format.py index d8d9f26f61588f3bd4f3fa5a13a61b50ad015210..d7babc97a4676cc5c89b6e8a9e815baa2d62a4f8 100644 --- a/addons/account_edi/models/account_edi_format.py +++ b/addons/account_edi/models/account_edi_format.py @@ -471,7 +471,7 @@ class AccountEdiFormat(models.Model): except RedirectWarning as rw: raise rw except Exception as e: - _logger.exception("Error importing attachment \"%s\" as invoice with format \"%s\"", file_data['filename'], edi_format.name, str(e)) + _logger.exception("Error importing attachment \"%s\" as invoice with format \"%s\"", file_data['filename'], edi_format.name, exc_info=True) if res: if 'extract_state' in res: # Bypass the OCR to prevent overwriting data when an EDI was succesfully imported. @@ -498,7 +498,7 @@ class AccountEdiFormat(models.Model): else: # file_data['type'] == 'binary' res = edi_format._update_invoice_from_binary(file_data['filename'], file_data['content'], file_data['extension'], invoice) except Exception as e: - _logger.exception("Error importing attachment \"%s\" as invoice with format \"%s\"", file_data['filename'], edi_format.name, str(e)) + _logger.exception("Error importing attachment \"%s\" as invoice with format \"%s\"", file_data['filename'], edi_format.name, exc_info=True) if res: if 'extract_state' in res: # Bypass the OCR to prevent overwriting data when an EDI was succesfully imported.