[FIX] account_payment_order: Correct payment date

This commit is contained in:
Graeme Gellatly
2024-09-13 09:10:37 +12:00
committed by GitHub
parent 9ac1db21fb
commit 9ffd86f0af

View File

@@ -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