diff --git a/l10n_es_aeat_sii_oca/models/account_move.py b/l10n_es_aeat_sii_oca/models/account_move.py index ddf9bcedbd3..e978e4d965e 100644 --- a/l10n_es_aeat_sii_oca/models/account_move.py +++ b/l10n_es_aeat_sii_oca/models/account_move.py @@ -713,7 +713,7 @@ def cancel_sii(self): else: eta = company._get_sii_eta() new_delay = ( - self.sudo() + invoice.sudo() .with_context(company_id=company.id) .with_delay(eta=eta) .cancel_one_invoice()