From 8264b77b7c1dd57c5ebbd3e0ac72becdde34e642 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Tue, 24 Dec 2024 07:56:51 -0500 Subject: [PATCH] [FIX] contract: link contract instead of move Before this commit, the posted message was linked to the move instead of the contract. --- contract/models/contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contract/models/contract.py b/contract/models/contract.py index 7208e276b..510e4ff4b 100644 --- a/contract/models/contract.py +++ b/contract/models/contract.py @@ -615,7 +615,7 @@ class ContractContract(models.Model): for move in invoices & item._get_related_invoices(): body = Markup(_("%(msg)s by contract: %(contract_link)s")) % { "msg": move._creation_message(), - "contract_link": move._get_html_link(title=item.display_name), + "contract_link": item._get_html_link(title=item.display_name), } move.message_post(body=body)