-
-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] mail_tracking: Completed migration to 16.0
The following changes were implemented: 1 - Added Failed Message component and related components to reuse the Message component when rendering failed messages. This allows us to dispose of the messagefailed JS model altogether, since failed messages are now just regular messages that were marked as failed. 2 - Fixed 'Retry' and 'Set as reviewed' flows for failed messages. 3 - Fixed `Failed sent messages` filter on models by overriding `get_view` instead of `_fields_view_get` 4 - Refactored folder structure to more closely resemble the `mail` module's folder structure. 5 - Refactored module to utilize `Command` as a means to create, write, etc. instead of `[0, ...]`, `[4, ...]`. 6 - Fixed and added unit tests. 7 - Removed dead/unused code.
- Loading branch information
Showing
44 changed files
with
716 additions
and
1,155 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
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 |
---|---|---|
|
@@ -13,10 +13,13 @@ | |
<field name="body"><![CDATA[<p>This is a message with CC</p>]]></field> | ||
<field name="email_from">[email protected]</field> | ||
<field name="author_id" ref="base.res_partner_1" /> | ||
<field name="partner_ids" eval="[(6, 0, [ref('base.partner_demo')])]" /> | ||
<field | ||
name="partner_ids" | ||
eval="[Command.set([ref('base.partner_demo')])]" | ||
/> | ||
<field | ||
name="notification_ids" | ||
eval="[(0, 0, {'res_partner_id': ref('base.partner_demo')})]" | ||
eval="[Command.create({'res_partner_id': ref('base.partner_demo')})]" | ||
/> | ||
<field name="subject">Message with CC</field> | ||
</record> | ||
|
@@ -41,10 +44,13 @@ | |
<field name="body"><![CDATA[<p>This is a failed message</p>]]></field> | ||
<field name="email_from">[email protected]</field> | ||
<field name="author_id" ref="base.res_partner_1" /> | ||
<field name="partner_ids" eval="[(6, 0, [ref('base.partner_demo')])]" /> | ||
<field | ||
name="partner_ids" | ||
eval="[Command.set([ref('base.partner_demo')])]" | ||
/> | ||
<field | ||
name="notification_ids" | ||
eval="[(0, 0, {'res_partner_id': ref('base.partner_demo')})]" | ||
eval="[Command.create({'res_partner_id': ref('base.partner_demo')})]" | ||
/> | ||
<field name="subject">Failed Message</field> | ||
</record> | ||
|
@@ -69,10 +75,13 @@ | |
<field name="body"><![CDATA[<p>This is another failed message</p>]]></field> | ||
<field name="email_from">[email protected]</field> | ||
<field name="author_id" ref="base.res_partner_10" /> | ||
<field name="partner_ids" eval="[(6, 0, [ref('base.partner_demo')])]" /> | ||
<field | ||
name="partner_ids" | ||
eval="[Command.set([ref('base.partner_demo')])]" | ||
/> | ||
<field | ||
name="notification_ids" | ||
eval="[(0, 0, {'res_partner_id': ref('base.partner_demo')})]" | ||
eval="[Command.create({'res_partner_id': ref('base.partner_demo')})]" | ||
/> | ||
<field name="subject">Failed Message</field> | ||
</record> | ||
|
@@ -97,10 +106,13 @@ | |
<field name="body"><![CDATA[<p>This is another failed message</p>]]></field> | ||
<field name="email_from">[email protected]</field> | ||
<field name="author_id" ref="base.partner_admin" /> | ||
<field name="partner_ids" eval="[(6, 0, [ref('base.partner_demo')])]" /> | ||
<field | ||
name="partner_ids" | ||
eval="[Command.set([ref('base.partner_demo')])]" | ||
/> | ||
<field | ||
name="notification_ids" | ||
eval="[(0, 0, {'res_partner_id': ref('base.partner_demo')})]" | ||
eval="[Command.create({'res_partner_id': ref('base.partner_demo')})]" | ||
/> | ||
<field name="subject">Failed Message</field> | ||
</record> | ||
|
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
Oops, something went wrong.