summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2020-10-07 12:55:21 +0000
committerGoffin Simon <sig@odoo.com>2020-10-07 12:55:21 +0000
commitbe5d72974ad89c985e413f0eb84352a00a6cd043 (patch)
treec9dec60c26d705029a71ec2573716ad453fc2c39
parent372b46b398a5b29f9d854146d51d1cc8bfb97e07 (diff)
[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#59413 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
-rw-r--r--addons/account/models/account_move.py2
1 files changed, 1 insertions, 1 deletions
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