-
-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] mail_notification_with_history: Migration to 18.0
- Loading branch information
Showing
7 changed files
with
53 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
|
||
<template | ||
id="message_notification_email" | ||
inherit_id="mail.message_notification_email" | ||
<template | ||
id="mail_notification_with_history.mail_notification_layout" | ||
inherit_id="mail.mail_notification_layout" | ||
> | ||
<xpath expr="//div[@t-if='signature']" position="after"> | ||
|
||
<t | ||
<xpath expr="//div[@t-out='signature']" position="after"> | ||
<t | ||
t-set="message_history" | ||
t-value="message._get_notification_message_history()" | ||
/> | ||
<t t-if="message_history"> | ||
<p class="message_history_title">Discussion history in Odoo:</p> | ||
<ul> | ||
<t t-foreach="message_history" t-as="msg"> | ||
<li class="message_history_item"> | ||
<p><t t-esc="msg.author_id.name or 'unknown'" /> commented on <span | ||
t-field="msg.date" | ||
/></p> | ||
<div t-raw="msg.body" /> | ||
</li> | ||
</t> | ||
</ul> | ||
</t> | ||
|
||
</xpath> | ||
</template> | ||
|
||
<t t-if="message_history"> | ||
<p class="message_history_title">Discussion history in Odoo:</p> | ||
<ul> | ||
<t t-foreach="message_history" t-as="msg"> | ||
<li class="message_history_item"> | ||
<p><t | ||
t-out="msg.author_id.name or 'unknown'" | ||
/> commented on <span t-field="msg.date" /></p> | ||
<div t-out="msg.body" /> | ||
</li> | ||
</t> | ||
</ul> | ||
</t> | ||
</xpath> | ||
</template> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
- [Camptocamp](https://www.camptocamp.com) | ||
|
||
> - Thierry Ducrest \<<thierry.ducrest@camptocamp.com>\> | ||
> - Tris Doan \<<tridm@trobz.com>\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The migration of this module from 14.0 to 18.0 was financially supported by Camptocamp. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters