Skip to content

Commit

Permalink
[MIG] mail_tracking: Migration to 17.0
Browse files Browse the repository at this point in the history
TT49060
  • Loading branch information
chienandalu committed May 30, 2024
1 parent ca67a1e commit 51a9d8f
Show file tree
Hide file tree
Showing 54 changed files with 1,111 additions and 766 deletions.
18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,7 @@

[//]: # (addons)

Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[base_search_mail_content](base_search_mail_content/) | 17.0.1.0.0 | | Base Search Mail Content
[mail_activity_board](mail_activity_board/) | 17.0.1.0.1 | | Add Activity Boards
[mail_activity_team](mail_activity_team/) | 17.0.1.0.0 | | Add Teams to Activities
[mail_attach_existing_attachment](mail_attach_existing_attachment/) | 17.0.1.0.0 | | Adding attachment on the object by sending this one
[mail_debrand](mail_debrand/) | 17.0.1.0.0 | [![pedrobaeza](https://github.com/pedrobaeza.png?size=30px)](https://github.com/pedrobaeza) [![joao-p-marques](https://github.com/joao-p-marques.png?size=30px)](https://github.com/joao-p-marques) | Remove Odoo branding in sent emails Removes anchor <a href odoo.com togheder with it's parent ( for powerd by) form all the templates removes any 'odoo' that are in tempalte texts > 20characters
[mail_notification_custom_subject](mail_notification_custom_subject/) | 17.0.1.0.0 | [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) | Apply a custom subject to mail notifications
[mail_optional_autofollow](mail_optional_autofollow/) | 17.0.1.0.0 | | Choose if you want to automatically add new recipients as followers on mail.compose.message
[mail_outbound_static](mail_outbound_static/) | 17.0.1.0.1 | | Allows you to configure the from header for a mail server.
[mail_partner_forwarding](mail_partner_forwarding/) | 17.0.1.0.1 | | Forwarding notifications for partners
[mail_partner_opt_out](mail_partner_opt_out/) | 17.0.1.0.0 | | Add the partner's email to the blackmailed list
[mail_send_confirmation](mail_send_confirmation/) | 17.0.1.0.0 | | Mail Send Confirmation
[mass_mailing_partner](mass_mailing_partner/) | 17.0.1.0.0 | | Link partners with mass-mailing
[mass_mailing_resend](mass_mailing_resend/) | 17.0.1.1.0 | [![pedrobaeza](https://github.com/pedrobaeza.png?size=30px)](https://github.com/pedrobaeza) | Resend mass mailings
This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.

[//]: # (end addons)

Expand Down
173 changes: 82 additions & 91 deletions mail_tracking/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ Email tracking
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
:target: https://github.com/OCA/social/tree/16.0/mail_tracking
:target: https://github.com/OCA/social/tree/17.0/mail_tracking
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking
:target: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_tracking
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module shows email notification tracking status for any messages in
mail thread (chatter). Each notified partner will have an intuitive icon just
right to his name.
mail thread (chatter). Each notified partner will have an intuitive icon
just right to his name.

**Table of contents**

Expand All @@ -40,157 +40,148 @@ right to his name.
Installation
============

If you're using a multi-database installation (with or without dbfilter option)
where /web/databse/selector returns a list of more than one database, then
you need to add ``mail_tracking`` addon to wide load addons list
(by default, only ``web`` addon), setting ``--load`` option.
If you're using a multi-database installation (with or without dbfilter
option) where /web/databse/selector returns a list of more than one
database, then you need to add ``mail_tracking`` addon to wide load
addons list (by default, only ``web`` addon), setting ``--load`` option.
For example, ``--load=web,mail,mail_tracking``

Configuration
=============

As there can be scenarios where sending a tracking img in the email body is
not desired, there is a global system parameter
As there can be scenarios where sending a tracking img in the email body
is not desired, there is a global system parameter
"mail_tracking.tracking_img_disabled" that can be set to True to remove
the tracking img from all outgoing emails. Note that the **Opened** status
will not be available in this case.
the tracking img from all outgoing emails. Note that the **Opened**
status will not be available in this case.

Usage
=====

When user sends a message in mail_thread (chatter), for instance in partner
form, then an email tracking is created for each email notification. Then a
status icon will appear just right to name of notified partner.
When user sends a message in mail_thread (chatter), for instance in
partner form, then an email tracking is created for each email
notification. Then a status icon will appear just right to name of
notified partner.

These are all available status icons:

.. |sent| image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/src/img/sent.png
:width: 10px
|unknown| **Unknown**: No email tracking info available. Maybe this
notified partner has 'Receive Inbox Notifications by Email' == 'Never'

.. |delivered| image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/src/img/delivered.png
:width: 15px
|waiting| **Waiting**: Waiting to be sent

.. |opened| image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/src/img/opened.png
:width: 15px
|error| **Error**: Error while sending

.. |error| image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/src/img/error.png
:width: 10px
|sent| **Sent**: Sent to SMTP server configured

.. |waiting| image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/src/img/waiting.png
:width: 10px
|delivered| **Delivered**: Delivered to final MX server

.. |unknown| image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/src/img/unknown.png
:width: 10px
|opened| **Opened**: Opened by partner

.. |cc| image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/src/img/cc.png
:width: 10px
|cc| **Cc**: It's a Carbon-Copy recipient. Can't know the status so is
'Unknown'

.. |noemail| image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/src/img/no_email.png
:width: 10px

.. |anonuser| image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/src/img/anon_user.png
:width: 10px

|unknown| **Unknown**: No email tracking info available. Maybe this notified partner has 'Receive Inbox Notifications by Email' == 'Never'

|waiting| **Waiting**: Waiting to be sent

|error| **Error**: Error while sending

|sent| **Sent**: Sent to SMTP server configured

|delivered| **Delivered**: Delivered to final MX server

|opened| **Opened**: Opened by partner

|cc| **Cc**: It's a Carbon-Copy recipient. Can't know the status so is 'Unknown'

|noemail| **No Email**: The partner doesn't have a defined email

|anonuser| **No Partner**: The recipient doesn't have a defined partner
|noemail| **No Email**: The partner doesn't have a defined email

|anonuser| **No Partner**: The recipient doesn't have a defined partner

If you want to see all tracking emails and events you can go to

* Settings > Technical > Email > Tracking emails
* Settings > Technical > Email > Tracking events
- Settings > Technical > Email > Tracking emails
- Settings > Technical > Email > Tracking events

When the message generates an 'error' status, it will apear on discuss 'Failed'
channel. Any view with chatter can show the failed messages
When the message generates an 'error' status, it will apear on discuss
'Failed' channel. Any view with chatter can show the failed messages
too.

* Discuss
- Discuss

.. image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/img/failed_message_discuss.png
|image|

* Chatter
- Chatter

.. image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/img/failed_message_widget.png
|image1|

You can use "Failed sent messages" filter present in all views to show records
with messages in failed status and that needs an user action.
You can use "Failed sent messages" filter present in all views to show
records with messages in failed status and that needs an user action.

* Filter
- Filter

.. image:: https://raw.githubusercontent.com/OCA/social/16.0/mail_tracking/static/img/failed_message_filter.png
|image2|

.. |unknown| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/src/img/unknown.png
.. |waiting| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/src/img/waiting.png
.. |error| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/src/img/error.png
.. |sent| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/src/img/sent.png
.. |delivered| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/src/img/delivered.png
.. |opened| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/src/img/opened.png
.. |cc| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/src/img/cc.png
.. |noemail| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/src/img/no_email.png
.. |anonuser| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/src/img/anon_user.png
.. |image| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/img/failed_message_discuss.png
.. |image1| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/img/failed_message_widget.png
.. |image2| image:: https://raw.githubusercontent.com/OCA/social/17.0/mail_tracking/static/img/failed_message_filter.png

Known issues / Roadmap
======================

* Integrate with the core `mail.notification` model. A soft way would be to write a
notification event along with the mail.tracking.event ones. Another way could be
to merge both models and build the module features on top of it. This might imply
a refactor though.
- Integrate with the core mail.notification model. A soft way would be
to write a notification event along with the mail.tracking.event
ones. Another way could be to merge both models and build the module
features on top of it. This might imply a refactor though.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_tracking%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_tracking%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~
-------

* Tecnativa

Contributors
~~~~~~~~~~~~
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Antonio Espinosa
- David Vidal
- Ernesto Tejeda
- Rafael Blasco
- Alexandre Díaz

* `Tecnativa <https://www.tecnativa.com>`_:
- `Eezee-IT <https://www.eezee-it.com>`__:

* Pedro M. Baeza
* Antonio Espinosa
* David Vidal
* Ernesto Tejeda
* Rafael Blasco
* Alexandre Díaz
- Asma Elferkhsi

* `Eezee-IT <https://www.eezee-it.com>`_:
* Asma Elferkhsi
- `Vauxoo <https://www.vauxoo.com>`__:

* `Vauxoo <https://www.vauxoo.com>`_:
* Agustín Payen Sandoval
- Agustín Payen Sandoval

Other credits
~~~~~~~~~~~~~
-------------

Images
------
~~~~~~

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
* Thanks to `LlubNek <https://openclipart.org/user-detail/LlubNek>`_ and `Openclipart
<https://openclipart.org>`_ for `the icon
<https://openclipart.org/detail/19342/open-envelope>`_.
- Odoo Community Association:
`Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`__.
- Thanks to `LlubNek <https://openclipart.org/user-detail/LlubNek>`__
and `Openclipart <https://openclipart.org>`__ for `the
icon <https://openclipart.org/detail/19342/open-envelope>`__.

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -202,6 +193,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/social <https://github.com/OCA/social/tree/16.0/mail_tracking>`_ project on GitHub.
This module is part of the `OCA/social <https://github.com/OCA/social/tree/17.0/mail_tracking>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
46 changes: 22 additions & 24 deletions mail_tracking/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
# Copyright 2018 David Vidal - <david.vidal@tecnativa.com>
# Copyright 2016 Tecnativa - Antonio Espinosa
# Copyright 2018 Tecnativa - David Vidal
# Copyright 2018 Tecnativa - Ernesto Tejeda
# Copyright 2019 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Email tracking",
"summary": "Email tracking system for all mails sent",
"version": "16.0.1.0.4",
"version": "17.0.1.0.0",
"category": "Social Network",
"website": "https://github.com/OCA/social",
"author": ("Tecnativa, " "Odoo Community Association (OCA)"),
Expand All @@ -26,32 +26,30 @@
],
"assets": {
"web.assets_backend": [
"mail_tracking/static/src/web/chatter/*",
"mail_tracking/static/src/web/message/*",
"mail_tracking/static/src/client_actions/failed_message_storage.esm.js",
"mail_tracking/static/src/models/chatter.esm.js",
"mail_tracking/static/src/models/discuss_sidebar_mailbox_view.esm.js",
"mail_tracking/static/src/models/discuss_view.esm.js",
"mail_tracking/static/src/models/mailbox.esm.js",
"mail_tracking/static/src/models/message_list_view_item.esm.js",
"mail_tracking/static/src/models/message_list_view.esm.js",
"mail_tracking/static/src/models/message_view.esm.js",
"mail_tracking/static/src/models/message.esm.js",
"mail_tracking/static/src/models/messaging_initializer.esm.js",
"mail_tracking/static/src/models/messaging.esm.js",
"mail_tracking/static/src/models/thread.esm.js",
"mail_tracking/static/src/components/discuss/discuss.xml",
"mail_tracking/static/src/components/message/message.xml",
"mail_tracking/static/src/components/message/message.esm.js",
"mail_tracking/static/src/components/message/message.scss",
"mail_tracking/static/src/components/message_list/message_list.esm.js",
# "mail_tracking/static/src/models/chatter.esm.js",
# "mail_tracking/static/src/models/discuss_sidebar_mailbox_view.esm.js",
# "mail_tracking/static/src/models/discuss_view.esm.js",
# "mail_tracking/static/src/models/mailbox.esm.js",
# "mail_tracking/static/src/models/message_list_view_item.esm.js",
# "mail_tracking/static/src/models/message_list_view.esm.js",
# "mail_tracking/static/src/models/message_view.esm.js",
# "mail_tracking/static/src/models/message.esm.js",
# "mail_tracking/static/src/models/messaging_initializer.esm.js",
# "mail_tracking/static/src/models/messaging.esm.js",
# "mail_tracking/static/src/models/thread.esm.js",
# "mail_tracking/static/src/components/discuss/discuss.xml",
# "mail_tracking/static/src/services/**/*js",
# "mail_tracking/static/src/components/message_list/message_list.esm.js",
"mail_tracking/static/src/components/failed_message/failed_message.xml",
"mail_tracking/static/src/components/failed_message/failed_message.esm.js",
"mail_tracking/static/src/components/failed_message/failed_message.scss",
"mail_tracking/static/src/components/failed_message_list/failed_message_list.xml",
"mail_tracking/static/src/components/failed_message_list/failed_message_list.esm.js", # noqa: B950
"mail_tracking/static/src/components/discuss_sidebar_mailbox/discuss_sidebar_mailbox.xml", # noqa: B950
"mail_tracking/static/src/components/discuss_sidebar_mailbox/discuss_sidebar_mailbox.esm.js", # noqa: B950
# "mail_tracking/static/src/components/failed_message_list/*,
# "mail_tracking/static/src/components/discuss_sidebar_mailbox/*,
"mail_tracking/static/src/components/thread_view/thread_view.xml",
"mail_tracking/static/src/components/thread_view/thread_view.scss",
# "mail_tracking/static/src/components/thread_view/thread_view.scss",
],
},
"demo": ["demo/demo.xml"],
Expand Down
2 changes: 1 addition & 1 deletion mail_tracking/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import main
from . import discuss
from . import webclient
28 changes: 0 additions & 28 deletions mail_tracking/controllers/discuss.py

This file was deleted.

Loading

0 comments on commit 51a9d8f

Please sign in to comment.