diff --git a/addons/account_edi/models/account_move.py b/addons/account_edi/models/account_move.py
index 05eea94a60c..5a89eb626fb 100644
--- a/addons/account_edi/models/account_move.py
+++ b/addons/account_edi/models/account_move.py
@@ -508,7 +508,14 @@ class AccountMove(models.Model):
docs = self.edi_document_ids.filtered(lambda d: d.state in ('to_send', 'to_cancel') and d.blocking_level != 'error')
docs._process_documents_web_services()
+ def _retry_edi_documents_error_hook(self):
+ ''' Hook called when edi_documents are retried. For example, when it's needed to clean a field.
+ TO OVERRIDE
+ '''
+ return
+
def action_retry_edi_documents_error(self):
+ self._retry_edi_documents_error_hook()
self.edi_document_ids.write({'error': False, 'blocking_level': False})
self.action_process_edi_web_services()
diff --git a/addons/account_edi/views/account_move_views.xml b/addons/account_edi/views/account_move_views.xml
index 9f3d07d5d97..7a17d2afe06 100644
--- a/addons/account_edi/views/account_move_views.xml
+++ b/addons/account_edi/views/account_move_views.xml
@@ -33,10 +33,10 @@