diff --git a/l10n_es_aeat_sii_oca/models/account_move.py b/l10n_es_aeat_sii_oca/models/account_move.py index d2a8ead9a25..d423efef22e 100644 --- a/l10n_es_aeat_sii_oca/models/account_move.py +++ b/l10n_es_aeat_sii_oca/models/account_move.py @@ -444,6 +444,8 @@ def _get_sii_invoice_type(self): def _get_sii_invoice_dict_out(self, cancel=False): inv_dict = super()._get_sii_invoice_dict_out(cancel=cancel) + if cancel: + return inv_dict if self.thirdparty_invoice: inv_dict["FacturaExpedida"]["EmitidaPorTercerosODestinatario"] = "S" if self.sii_registration_key_additional1: