diff --git a/l10n_it_account/models/account_tax.py b/l10n_it_account/models/account_tax.py index b0c6344b9cf6..f835e7c769bf 100644 --- a/l10n_it_account/models/account_tax.py +++ b/l10n_it_account/models/account_tax.py @@ -158,7 +158,7 @@ def _compute_totals_tax(self, data): if data.get("journal_ids"): context["vat_registry_journal_ids"] = data["journal_ids"] - tax = self.env["account.tax"].with_context(context).browse(self.id) + tax = self.env["account.tax"].with_context(**context).browse(self.id) tax_name = tax._get_tax_name() if not tax.children_tax_ids: base_balance = tax.base_balance