From d2b0488fd9eff6c91a34f97e095e23d662398119 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 7 Oct 2020 12:55:21 +0000 Subject: [PATCH] [FIX] account: Update invoice_partner_display_name Steps to reproduce the bug: - Open a customer invoice I - Click on the partner P set on I - Change the contact name of P - Go to the list view of customer invoice Bug: The name of P was not updated. opw:2354492 closes odoo/odoo#59507 X-original-commit: be5d72974ad89c985e413f0eb84352a00a6cd043 Signed-off-by: Simon Goffin (sig) --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 1f3ff0cb72b..1c189862f5b 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1326,7 +1326,7 @@ class AccountMove(models.Model): res = True r.invoice_has_matching_suspense_amount = res - @api.depends('partner_id', 'invoice_source_email') + @api.depends('partner_id', 'invoice_source_email', 'partner_id.name') def _compute_invoice_partner_display_info(self): for move in self: vendor_display_name = move.partner_id.display_name