mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[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:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user