diff --git a/l10n_es_aeat_mod369/models/mod369_line_grouped.py b/l10n_es_aeat_mod369/models/mod369_line_grouped.py index f0bdca5db84..870f8e4e8d0 100644 --- a/l10n_es_aeat_mod369/models/mod369_line_grouped.py +++ b/l10n_es_aeat_mod369/models/mod369_line_grouped.py @@ -65,10 +65,11 @@ def _compute_totals(self): ("is_refund", "=", True), ("country_code", "=", group.country_code), ], - limit=1, ) if refund_line: - group_keys["neg_corrections"] = refund_line.tax_correction + group_keys["neg_corrections"] = sum( + refund_line.mapped("tax_correction") + ) group_keys["result_total"] = ( group_keys["amount"] + group_keys["pos_corrections"]