Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[base_search_mail_content](base_search_mail_content/) | 18.0.1.0.0 | | Base Search Mail Content
[base_search_mail_content](base_search_mail_content/) | 18.0.1.0.2 | | Base Search Mail Content
[mail_activity_board](mail_activity_board/) | 18.0.1.0.0 | | Add Activity Boards
[mail_activity_done](mail_activity_done/) | 18.0.1.0.0 | | Mail Activity Done
[mail_activity_team](mail_activity_team/) | 18.0.1.0.0 | | Add Teams to Activities
[mail_activity_team](mail_activity_team/) | 18.0.1.0.1 | | Add Teams to Activities
[mail_attach_existing_attachment](mail_attach_existing_attachment/) | 18.0.1.0.0 | | Adding attachment on the object by sending this one
[mail_attach_existing_attachment_account](mail_attach_existing_attachment_account/) | 18.0.1.0.0 | | Module to use attach existing attachment for account module
[mail_autogenerated_header](mail_autogenerated_header/) | 18.0.1.0.0 | | Add headers to Odoo's mails indicating they are autogenerated
Expand All @@ -36,7 +36,7 @@ addon | version | maintainers | summary
[mail_force_email_notification](mail_force_email_notification/) | 18.0.1.0.0 | | Context key to define notifications to be sent by emaildefined by force_notification_by_email context key
[mail_inline_css](mail_inline_css/) | 18.0.1.0.0 | | Convert style tags in inline style in your mails
[mail_layout_preview](mail_layout_preview/) | 18.0.1.0.0 | | Preview email templates in the browser
[mail_message_search](mail_message_search/) | 18.0.1.0.0 | <a href='https://github.com/yostashiro'><img src='https://github.com/yostashiro.png' width='32' height='32' style='border-radius:50%;' alt='yostashiro'/></a> <a href='https://github.com/aungkokolin1997'><img src='https://github.com/aungkokolin1997.png' width='32' height='32' style='border-radius:50%;' alt='aungkokolin1997'/></a> | Mail Message Search
[mail_message_search](mail_message_search/) | 18.0.1.0.1 | <a href='https://github.com/yostashiro'><img src='https://github.com/yostashiro.png' width='32' height='32' style='border-radius:50%;' alt='yostashiro'/></a> <a href='https://github.com/aungkokolin1997'><img src='https://github.com/aungkokolin1997.png' width='32' height='32' style='border-radius:50%;' alt='aungkokolin1997'/></a> | Mail Message Search
[mail_notification_clean_status_error](mail_notification_clean_status_error/) | 18.0.1.0.0 | <a href='https://github.com/sebalix'><img src='https://github.com/sebalix.png' width='32' height='32' style='border-radius:50%;' alt='sebalix'/></a> | Extend Odoo scheduled action to also delete notifications in error.
[mail_notification_custom_subject](mail_notification_custom_subject/) | 18.0.1.0.0 | <a href='https://github.com/yajo'><img src='https://github.com/yajo.png' width='32' height='32' style='border-radius:50%;' alt='yajo'/></a> | Apply a custom subject to mail notifications
[mail_optional_autofollow](mail_optional_autofollow/) | 18.0.1.0.0 | | Choose if you want to automatically add new recipients as followers on mail.compose.message
Expand All @@ -50,7 +50,7 @@ addon | version | maintainers | summary
[mail_send_confirmation](mail_send_confirmation/) | 18.0.1.0.0 | | Mail Send Confirmation
[mail_show_follower](mail_show_follower/) | 18.0.1.0.1 | <a href='https://github.com/yajo'><img src='https://github.com/yajo.png' width='32' height='32' style='border-radius:50%;' alt='yajo'/></a> | Show CC document followers in mails.
[mail_suggested_recipient_unchecked](mail_suggested_recipient_unchecked/) | 18.0.1.0.0 | <a href='https://github.com/victoralmau'><img src='https://github.com/victoralmau.png' width='32' height='32' style='border-radius:50%;' alt='victoralmau'/></a> | Mail suggested recipient unchecked
[mail_tracking](mail_tracking/) | 18.0.1.0.4 | | Email tracking system for all mails sent
[mail_tracking](mail_tracking/) | 18.0.1.0.5 | | Email tracking system for all mails sent
[mail_tracking_mailgun](mail_tracking_mailgun/) | 18.0.1.0.0 | | Mail tracking and Mailgun webhooks integration
[mail_tracking_mass_mailing](mail_tracking_mass_mailing/) | 18.0.1.0.0 | | Improve mass mailing email tracking

Expand Down
3 changes: 2 additions & 1 deletion base_search_mail_content/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Base Search Mail Content
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:97c31f4e41e21c646d32fb6d0e0286ac6d3626ae5bfc0109274b6e1b65724eb5
!! source digest: sha256:f94db845b3f6bb06a1f792460142c6b5bec4946e13e8fed0b1d5e258b5f03487
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down Expand Up @@ -118,6 +118,7 @@ Contributors
- David Bañón

- Nguyen Minh Chien <chien@trobz.com>
- Joel Estrada (`Moduon <https://moduon.es>`__)

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion base_search_mail_content/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{
"name": "Base Search Mail Content",
"version": "18.0.1.0.0",
"version": "18.0.1.0.2",
"author": "ForgeFlow, SerpentCS, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/mail",
"category": "Social",
Expand Down
21 changes: 11 additions & 10 deletions base_search_mail_content/models/mail_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ class MailThread(models.AbstractModel):

def _search_message_content(self, operator, value):
model_domain = [("model", "=", self._name)]
if operator not in expression.NEGATIVE_TERM_OPERATORS:
model_domain += ["|"] * 4
is_negative = operator in expression.NEGATIVE_TERM_OPERATORS
op = expression.TERM_OPERATORS_NEGATION.get(operator, operator)
model_domain += ["|"] * 4
model_domain += [("body", "ilike" if op == "%" else op, value)]
model_domain += [
("record_name", operator, value),
("subject", operator, value),
("body", operator, value),
("email_from", operator, value),
("reply_to", operator, value),
("record_name", op, value),
("subject", op, value),
("email_from", op, value),
("reply_to", op, value),
]
recs = self.env["mail.message"].search(model_domain)
return [("id", "in", recs.mapped("res_id"))]

return [("message_ids", "not any" if is_negative else "any", model_domain)]

message_content = fields.Text(
help="Message content, to be used only in searches",
Expand Down Expand Up @@ -56,5 +57,5 @@ def get_view(self, view_id=None, view_type="form", **options):
"field", {"name": "message_content", "operator": "%"}
)
node.addnext(elem)
res["arch"] = etree.tostring(doc)
res["arch"] = etree.tostring(doc, encoding="unicode")
return res
1 change: 1 addition & 0 deletions base_search_mail_content/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
- Ernesto Tejeda
- David Bañón
- Nguyen Minh Chien \<<chien@trobz.com>\>
- Joel Estrada ([Moduon](https://moduon.es))
3 changes: 2 additions & 1 deletion base_search_mail_content/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ <h1>Base Search Mail Content</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:97c31f4e41e21c646d32fb6d0e0286ac6d3626ae5bfc0109274b6e1b65724eb5
!! source digest: sha256:f94db845b3f6bb06a1f792460142c6b5bec4946e13e8fed0b1d5e258b5f03487
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/mail/tree/18.0/base_search_mail_content"><img alt="OCA/mail" src="https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-base_search_mail_content"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/mail&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds the capability to find on any object (e.g. project
Expand Down Expand Up @@ -462,6 +462,7 @@ <h3><a class="toc-backref" href="#toc-entry-7">Contributors</a></h3>
</ul>
</li>
<li>Nguyen Minh Chien &lt;<a class="reference external" href="mailto:chien&#64;trobz.com">chien&#64;trobz.com</a>&gt;</li>
<li>Joel Estrada (<a class="reference external" href="https://moduon.es">Moduon</a>)</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
17 changes: 11 additions & 6 deletions base_search_mail_content/tests/test_base_search_mail_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def setUpClass(cls):
cls.channel_obj = cls.env["discuss.channel"]

def test_base_search_mail_content_1(self):
res = self.channel_obj.search([("message_content", "ilike", "xxxyyyzzz")])
res = self.channel_obj.search([("message_content", "%", "xxxyyyzzz")])
self.assertFalse(res, "You have a channel with xxxyyyzzz :O")

def test_base_search_mail_content_2(self):
Expand All @@ -28,9 +28,14 @@ def test_base_search_mail_content_3(self):
Partner = self.env["res.partner"]
partner = Partner.create({"name": "Test Partner"})
partner.message_post(
body="Hello World",
subject="Hello World",
)
partner_find = Partner.search([("message_content", "ilike", "world hell")])
self.assertFalse(partner_find)
partner_find = Partner.search([("message_content", "%", "world hell")])
self.assertEqual(partner, partner_find)
partner.message_post(
subject="Lorem ipsum",
)
# If positive, the partner should be in the result
partner_find = Partner.search([("message_content", "ilike", "Hello World")])
self.assertIn(partner, partner_find)
# If negative, the partner should be not in the result
partner_find = Partner.search([("message_content", "not ilike", "Hello World")])
self.assertNotIn(partner, partner_find)
11 changes: 3 additions & 8 deletions mail_activity_team/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Mail Activity Team
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2f89995e87d2922a9f795b1c56269d35e8145119ef8a3b116f8cd62b78b3d178
!! source digest: sha256:51672fdadfaeec24c2ecce86ab4698c99dfcc197c6f803ab4281af9248dd1c0d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Expand All @@ -34,11 +34,6 @@ Mail Activity Team

This module adds the possibility to assign teams to activities.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
Expand Down
4 changes: 2 additions & 2 deletions mail_activity_team/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{
"name": "Mail Activity Team",
"summary": "Add Teams to Activities",
"version": "18.0.1.0.0",
"development_status": "Alpha",
"version": "18.0.1.0.1",
"development_status": "Beta",
"category": "Social Network",
"website": "https://github.com/OCA/mail",
"author": "ForgeFlow, Sodexis, Odoo Community Association (OCA)",
Expand Down
10 changes: 2 additions & 8 deletions mail_activity_team/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,16 +372,10 @@ <h1>Mail Activity Team</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2f89995e87d2922a9f795b1c56269d35e8145119ef8a3b116f8cd62b78b3d178
!! source digest: sha256:51672fdadfaeec24c2ecce86ab4698c99dfcc197c6f803ab4281af9248dd1c0d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/mail/tree/18.0/mail_activity_team"><img alt="OCA/mail" src="https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_activity_team"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/mail&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/mail/tree/18.0/mail_activity_team"><img alt="OCA/mail" src="https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_activity_team"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/mail&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds the possibility to assign teams to activities.</p>
<div class="admonition important">
<p class="first admonition-title">Important</p>
<p class="last">This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
<a class="reference external" href="https://odoo-community.org/page/development-status">More details on development status</a></p>
</div>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down
2 changes: 1 addition & 1 deletion mail_message_search/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Mail Message Search
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0b2d4ccefbad330ac90a9abb4a92dcf1483d4df352e85d5be54ab01b3492a20e
!! source digest: sha256:5b7a84e863aa1b256584e7696181a8319ccf3fe658eee3ba07567752da997df7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion mail_message_search/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Mail Message Search",
"version": "18.0.1.0.0",
"version": "18.0.1.0.1",
"author": "Quartile, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/mail",
"depends": ["mail"],
Expand Down
2 changes: 1 addition & 1 deletion mail_message_search/models/mail_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ def get_view(self, view_id=None, view_type="form", **options):
# Add message_search in search view
elem = etree.Element("field", {"name": "message_search"})
node.addnext(elem)
res["arch"] = etree.tostring(doc)
res["arch"] = etree.tostring(doc, encoding="unicode")
return res
2 changes: 1 addition & 1 deletion mail_message_search/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ <h1>Mail Message Search</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0b2d4ccefbad330ac90a9abb4a92dcf1483d4df352e85d5be54ab01b3492a20e
!! source digest: sha256:5b7a84e863aa1b256584e7696181a8319ccf3fe658eee3ba07567752da997df7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/mail/tree/18.0/mail_message_search"><img alt="OCA/mail" src="https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_message_search"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/mail&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module enables searching for messages across any record that uses
Expand Down
2 changes: 1 addition & 1 deletion mail_tracking/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Email tracking
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:07c993168145785395935a22863e2fddeae5882ea36f606955ed33fb6d6f7d18
!! source digest: sha256:1dcb2ce7cde25d536c483309729542a0a80d35e24af13a43d9903a6284c3955f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion mail_tracking/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"name": "Email tracking",
"summary": "Email tracking system for all mails sent",
"version": "18.0.1.0.4",
"version": "18.0.1.0.5",
"category": "Social Network",
"website": "https://github.com/OCA/mail",
"author": ("Tecnativa, Odoo Community Association (OCA)"),
Expand Down
Loading