From ddfa78953801c8b7978cc20484ec35eea49b5e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Navarro=20Rico?= Date: Mon, 13 Jan 2025 15:12:11 +0100 Subject: [PATCH] [FIX] l10n_es_vat_book: other_tax_ids key error in pop of create vat_book lines --- l10n_es_vat_book/models/l10n_es_vat_book.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_es_vat_book/models/l10n_es_vat_book.py b/l10n_es_vat_book/models/l10n_es_vat_book.py index d1512cb3507..04afbd934b7 100644 --- a/l10n_es_vat_book/models/l10n_es_vat_book.py +++ b/l10n_es_vat_book/models/l10n_es_vat_book.py @@ -401,7 +401,7 @@ def create_vat_book_lines(self, move_lines, line_type, taxes): line_vals["special_tax_group"] = tax_group tax_line["special_tax_group"] = tax_group sp_taxes[tuple(tax_line["other_tax_ids"])] = tax_line - tax_line.pop("other_tax_ids") + tax_line.pop("other_tax_ids", None) # Second loop for putting the values in the other lines if sp_taxes: for tax_line in tax_lines.values():