[FIX] contract: link contract instead of move

Before this commit, the posted message was linked to the move instead of the contract.
This commit is contained in:
Carlos Lopez
2024-12-24 07:56:51 -05:00
parent ec92716691
commit 8264b77b7c

View File

@@ -615,7 +615,7 @@ class ContractContract(models.Model):
for move in invoices & item._get_related_invoices(): for move in invoices & item._get_related_invoices():
body = Markup(_("%(msg)s by contract: %(contract_link)s")) % { body = Markup(_("%(msg)s by contract: %(contract_link)s")) % {
"msg": move._creation_message(), "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) move.message_post(body=body)