From 408a06228e8b1df953faa68f52f99d4583a925a3 Mon Sep 17 00:00:00 2001 From: Oihane Crucelaegui Date: Thu, 23 Jan 2025 15:40:16 +0100 Subject: [PATCH] [FIX] account_invoice_last_payment: wrong field name --- account_invoice_last_payment/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_invoice_last_payment/models/account_move.py b/account_invoice_last_payment/models/account_move.py index ad1ce29f07..aa0b5fb18d 100644 --- a/account_invoice_last_payment/models/account_move.py +++ b/account_invoice_last_payment/models/account_move.py @@ -12,7 +12,7 @@ class AccountMove(models.Model): store=True, ) - @api.depends("line_ids", "payment_status") + @api.depends("line_ids", "payment_state") def _compute_last_payment_date(self): for move in self: if not move.is_invoice():