diff options
| author | Benjamin Frantzen (bfr) <bfr@odoo.com> | 2021-02-08 08:11:13 +0000 |
|---|---|---|
| committer | Benjamin Frantzen (bfr) <bfr@odoo.com> | 2021-02-08 08:49:37 +0000 |
| commit | 385fa29322f6dffc7d7d0de96a1cfbddb0cab7f0 (patch) | |
| tree | b06c2ca61074866c12fbf88b4536a53395b12861 /addons/account_edi/models | |
| parent | a7c4533a9bca17dce436a1f4a495df513fe3ccf1 (diff) | |
[FIX] account_edi: edi.document are re-send if they are in error
Before the introduction of account_edi_extended and blocking_level, if an edi.document was in error, it was retried each the time the edi.documents were processed. With account_edi_extended a bug was introduced and only the document not in error were processed. This commit aims to restore the previous behavior.
Also fixes tests of account_edi.
See https://github.com/odoo/odoo/commit/a9a46cf09b0c841c7fda95b5ed03033fc6936ca2
Diffstat (limited to 'addons/account_edi/models')
| -rw-r--r-- | addons/account_edi/models/account_move.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/addons/account_edi/models/account_move.py b/addons/account_edi/models/account_move.py index a8cbe445e53..b69cf611e5b 100644 --- a/addons/account_edi/models/account_move.py +++ b/addons/account_edi/models/account_move.py @@ -236,8 +236,6 @@ class AccountMove(models.Model): docs = self.edi_document_ids.filtered(lambda d: d.state in ('to_send', 'to_cancel')) if 'blocking_level' in self.env['account.edi.document']._fields: docs = docs.filtered(lambda d: d.blocking_level != 'error') - else: - docs = docs.filtered(lambda d: not d.error) docs._process_documents_web_services(with_commit=False) class AccountMoveLine(models.Model): |
