diff options
| author | Laurent Smet <las@odoo.com> | 2020-08-31 14:43:12 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2020-09-01 07:22:09 +0000 |
| commit | cd668909f578a7bbe87ab5e6f73df82855809c3b (patch) | |
| tree | d3fbc9843a4d86f3b7111b1fce22066502d3aed9 /addons | |
| parent | ea95f62af4faa23880e7c1f1cbe1aad3b2a490da (diff) | |
[FIX] account_edi: Process edi_document wo web services when cancelling
When calling 'button_cancel', the EDI documents that don't need any web-services must be cancelled directly.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account_edi/models/account_move.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/account_edi/models/account_move.py b/addons/account_edi/models/account_move.py index 88bc1511227..46d8e1d67b7 100644 --- a/addons/account_edi/models/account_move.py +++ b/addons/account_edi/models/account_move.py @@ -162,6 +162,7 @@ class AccountMove(models.Model): self.edi_document_ids.filtered(lambda doc: doc.attachment_id).write({'state': 'to_cancel', 'error': False}) self.edi_document_ids.filtered(lambda doc: not doc.attachment_id).write({'state': 'cancelled', 'error': False}) + self.edi_document_ids._process_documents_no_web_services() return res |
