diff --git a/account_payment_order_grouped_output/models/account_payment_order.py b/account_payment_order_grouped_output/models/account_payment_order.py index ef0636cb6..64f13e466 100644 --- a/account_payment_order_grouped_output/models/account_payment_order.py +++ b/account_payment_order_grouped_output/models/account_payment_order.py @@ -136,6 +136,8 @@ class AccountPaymentOrder(models.Model): ), "currency_id": payment.currency_id.id, "amount_currency": payment.amount * sign, + # Same logic as the individual payments + "date_maturity": payment.payment_line_ids[0].date, } return vals @@ -169,6 +171,8 @@ class AccountPaymentOrder(models.Model): ), "currency_id": payments[0].currency_id.id, "amount_currency": amount_payment_currency * sign, + # All the lines should have the same date following _prepare_trf_moves + "date_maturity": payments.payment_line_ids[:1].date, } return vals