From 9ffd86f0af78280f6daae60b694d0761429c0d54 Mon Sep 17 00:00:00 2001 From: Graeme Gellatly Date: Fri, 13 Sep 2024 09:10:37 +1200 Subject: [PATCH] [FIX] account_payment_order: Correct payment date --- account_payment_order/models/account_payment_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_payment_order/models/account_payment_line.py b/account_payment_order/models/account_payment_line.py index bbecc4ba3..a5558824f 100644 --- a/account_payment_order/models/account_payment_line.py +++ b/account_payment_order/models/account_payment_line.py @@ -195,7 +195,7 @@ class AccountPaymentLine(models.Model): "destination_account_id": self.move_line_id.account_id.id, "company_id": self.order_id.company_id.id, "amount": sum(self.mapped("amount_currency")), - "date": fields.Date.today(), + "date": fields.Date.context_today(self), "currency_id": self.currency_id.id, "ref": self.order_id.name, # Put the name as the wildcard for forcing a unique name. If not, Odoo gets