From 829d41c8934369830cd21ebc45e3ce120fae6ad1 Mon Sep 17 00:00:00 2001
From: Ernesto Tejeda
Date: Thu, 9 Jul 2020 16:21:18 -0400
Subject: [PATCH] [MIG] base_search_mail_content: Migration to 13.0
---
base_search_mail_content/README.rst | 10 +++++-----
base_search_mail_content/__manifest__.py | 4 ++--
base_search_mail_content/models/mail_thread.py | 4 ----
base_search_mail_content/static/description/index.html | 6 +++---
oca_dependencies.txt | 1 +
5 files changed, 11 insertions(+), 14 deletions(-)
create mode 100644 oca_dependencies.txt
diff --git a/base_search_mail_content/README.rst b/base_search_mail_content/README.rst
index 8207f561e..0e1af54ed 100644
--- a/base_search_mail_content/README.rst
+++ b/base_search_mail_content/README.rst
@@ -14,13 +14,13 @@ Base Search Mail Content
: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/12.0/base_search_mail_content
+ :target: https://github.com/OCA/social/tree/13.0/base_search_mail_content
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/social-12-0/social-12-0-base_search_mail_content
+ :target: https://translation.odoo-community.org/projects/social-13-0/social-13-0-base_search_mail_content
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/205/12.0
+ :target: https://runbot.odoo-community.org/runbot/205/13.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -72,7 +72,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -112,6 +112,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 `_ project on GitHub.
+This module is part of the `OCA/social `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/base_search_mail_content/__manifest__.py b/base_search_mail_content/__manifest__.py
index 48699dc71..898971eed 100644
--- a/base_search_mail_content/__manifest__.py
+++ b/base_search_mail_content/__manifest__.py
@@ -6,8 +6,8 @@
{
"name": "Base Search Mail Content",
- "version": "12.0.1.0.0",
- "author": "Eficent," "SerpentCS," "Tecnativa," "Odoo Community Association (OCA)",
+ "version": "13.0.1.0.0",
+ "author": "Eficent, SerpentCS, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/social",
"category": "Social",
"data": ["data/trgm_index_data.xml"],
diff --git a/base_search_mail_content/models/mail_thread.py b/base_search_mail_content/models/mail_thread.py
index b6c2704b9..3d532e174 100644
--- a/base_search_mail_content/models/mail_thread.py
+++ b/base_search_mail_content/models/mail_thread.py
@@ -8,15 +8,12 @@ from lxml import etree
from odoo import _, api, fields, models
from odoo.osv import expression
-from odoo.osv.orm import setup_modifiers
class MailThread(models.AbstractModel):
-
_inherit = "mail.thread"
def _search_message_content(self, operator, value):
-
model_domain = [("model", "=", self._name)]
if operator not in expression.NEGATIVE_TERM_OPERATORS:
model_domain += ["|"] * 4
@@ -57,7 +54,6 @@ class MailThread(models.AbstractModel):
for node in doc.xpath("//field[last()]"):
# Add message_content in search view
elem = etree.Element("field", {"name": "message_content"})
- setup_modifiers(elem)
node.addnext(elem)
res["arch"] = etree.tostring(doc)
return res
diff --git a/base_search_mail_content/static/description/index.html b/base_search_mail_content/static/description/index.html
index 226cc5ed2..06f8ef096 100644
--- a/base_search_mail_content/static/description/index.html
+++ b/base_search_mail_content/static/description/index.html
@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module adds the capability to find on any object (e.g. project issues or
helpdesk ticket) based on the conversation threads associated to them.
This will be useful in models that make intense use of messages,
@@ -414,7 +414,7 @@ for content in field ‘Message Content’.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -448,7 +448,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
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 project on GitHub.
+
This module is part of the OCA/social project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/oca_dependencies.txt b/oca_dependencies.txt
new file mode 100644
index 000000000..9c8c9172c
--- /dev/null
+++ b/oca_dependencies.txt
@@ -0,0 +1 @@
+server-tools