diff --git a/l10n_es_aeat_sii_oca/data/aeat_sii_queue_job.xml b/l10n_es_aeat_sii_oca/data/aeat_sii_queue_job.xml index f22186627c6..9214339cb83 100644 --- a/l10n_es_aeat_sii_oca/data/aeat_sii_queue_job.xml +++ b/l10n_es_aeat_sii_oca/data/aeat_sii_queue_job.xml @@ -14,4 +14,9 @@ cancel_one_invoice + + + confirm_one_document + + diff --git a/l10n_es_aeat_sii_oca/models/sii_mixin.py b/l10n_es_aeat_sii_oca/models/sii_mixin.py index c289cf85fd3..6e3540066cc 100644 --- a/l10n_es_aeat_sii_oca/models/sii_mixin.py +++ b/l10n_es_aeat_sii_oca/models/sii_mixin.py @@ -911,3 +911,6 @@ def _send_document_to_sii(self): def confirm_one_document(self): self.sudo()._send_document_to_sii() + + def confirm_one_invoice(self): + return self.confirm_one_document()