odoo-addon-mail-message-search 16.0.1.0.0.6__py3-none-any.whl → 17.0.1.0.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,7 @@
1
+ .. image:: https://odoo-community.org/readme-banner-image
2
+ :target: https://odoo-community.org/get-involved?utm_source=readme
3
+ :alt: Odoo Community Association
4
+
1
5
  ===================
2
6
  Mail Message Search
3
7
  ===================
@@ -7,23 +11,23 @@ Mail Message Search
7
11
  !! This file is generated by oca-gen-addon-readme !!
8
12
  !! changes will be overwritten. !!
9
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:e276b9738477253e4d9e296f1f4b18c589c12bc22463090e31cb188ce2aaba2b
14
+ !! source digest: sha256:4745db82563e5c9824952a1d36acdd3728e7d8b1ac32ad07baf7b7fc600d208c
11
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
16
 
13
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14
18
  :target: https://odoo-community.org/page/development-status
15
19
  :alt: Beta
16
- .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20
+ .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
17
21
  :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18
22
  :alt: License: AGPL-3
19
- .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
20
- :target: https://github.com/OCA/social/tree/16.0/mail_message_search
21
- :alt: OCA/social
23
+ .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github
24
+ :target: https://github.com/OCA/mail/tree/17.0/mail_message_search
25
+ :alt: OCA/mail
22
26
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23
- :target: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_message_search
27
+ :target: https://translation.odoo-community.org/projects/mail-17-0/mail-17-0-mail_message_search
24
28
  :alt: Translate me on Weblate
25
29
  .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26
- :target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=16.0
30
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=17.0
27
31
  :alt: Try me on Runboat
28
32
 
29
33
  |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -57,6 +61,18 @@ This module uses direct keyword matching across key fields in
57
61
  ``mail.message``, offering more reliable results in multilingual
58
62
  environments.
59
63
 
64
+ Configuration
65
+ =============
66
+
67
+ If your database is very large, you can limit how many messages a search
68
+ returns to prevent crashes.
69
+
70
+ - Go to Settings ▸ Technical ▸ System Parameters.
71
+ - Add a new parameter:
72
+
73
+ - Key: mail_message_search.message_limit
74
+ - Value: your desired limit (e.g., 5000).
75
+
60
76
  Usage
61
77
  =====
62
78
 
@@ -66,10 +82,10 @@ content in field 'Message Search'.
66
82
  Bug Tracker
67
83
  ===========
68
84
 
69
- Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_.
85
+ Bugs are tracked on `GitHub Issues <https://github.com/OCA/mail/issues>`_.
70
86
  In case of trouble, please check there if your issue has already been reported.
71
87
  If you spotted it first, help us to smash it by providing a detailed and welcomed
72
- `feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_message_search%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
88
+ `feedback <https://github.com/OCA/mail/issues/new?body=module:%20mail_message_search%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
73
89
 
74
90
  Do not contact contributors directly about support or help with technical issues.
75
91
 
@@ -113,6 +129,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
113
129
 
114
130
  |maintainer-yostashiro| |maintainer-aungkokolin1997|
115
131
 
116
- This module is part of the `OCA/social <https://github.com/OCA/social/tree/16.0/mail_message_search>`_ project on GitHub.
132
+ This module is part of the `OCA/mail <https://github.com/OCA/mail/tree/17.0/mail_message_search>`_ project on GitHub.
117
133
 
118
134
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -2,9 +2,9 @@
2
2
  # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3
3
  {
4
4
  "name": "Mail Message Search",
5
- "version": "16.0.1.0.0",
5
+ "version": "17.0.1.0.0",
6
6
  "author": "Quartile, Odoo Community Association (OCA)",
7
- "website": "https://github.com/OCA/social",
7
+ "website": "https://github.com/OCA/mail",
8
8
  "depends": ["mail"],
9
9
  "license": "AGPL-3",
10
10
  "maintainers": ["yostashiro", "aungkokolin1997"],
@@ -4,7 +4,7 @@
4
4
  #
5
5
  msgid ""
6
6
  msgstr ""
7
- "Project-Id-Version: Odoo Server 16.0\n"
7
+ "Project-Id-Version: Odoo Server 17.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
9
  "Last-Translator: \n"
10
10
  "Language-Team: \n"
@@ -19,63 +19,29 @@ msgid "Email Thread"
19
19
  msgstr ""
20
20
 
21
21
  #. module: mail_message_search
22
- #: model:ir.model.fields,field_description:mail_message_search.field_account_account__message_search
23
- #: model:ir.model.fields,field_description:mail_message_search.field_account_account_template__message_search
24
- #: model:ir.model.fields,field_description:mail_message_search.field_account_analytic_account__message_search
25
- #: model:ir.model.fields,field_description:mail_message_search.field_account_bank_statement_line__message_search
26
- #: model:ir.model.fields,field_description:mail_message_search.field_account_journal__message_search
27
- #: model:ir.model.fields,field_description:mail_message_search.field_account_move__message_search
28
- #: model:ir.model.fields,field_description:mail_message_search.field_account_payment__message_search
29
- #: model:ir.model.fields,field_description:mail_message_search.field_account_reconcile_model__message_search
30
- #: model:ir.model.fields,field_description:mail_message_search.field_account_setup_bank_manual_config__message_search
31
- #: model:ir.model.fields,field_description:mail_message_search.field_calendar_event__message_search
32
- #: model:ir.model.fields,field_description:mail_message_search.field_event_event__message_search
33
- #: model:ir.model.fields,field_description:mail_message_search.field_event_registration__message_search
22
+ #: model:ir.model.fields,field_description:mail_message_search.field_discuss_channel__message_search
34
23
  #: model:ir.model.fields,field_description:mail_message_search.field_mail_blacklist__message_search
35
- #: model:ir.model.fields,field_description:mail_message_search.field_mail_channel__message_search
36
24
  #: model:ir.model.fields,field_description:mail_message_search.field_mail_thread__message_search
37
25
  #: model:ir.model.fields,field_description:mail_message_search.field_mail_thread_blacklist__message_search
38
26
  #: model:ir.model.fields,field_description:mail_message_search.field_mail_thread_cc__message_search
27
+ #: model:ir.model.fields,field_description:mail_message_search.field_mail_thread_main_attachment__message_search
39
28
  #: model:ir.model.fields,field_description:mail_message_search.field_mail_thread_phone__message_search
40
- #: model:ir.model.fields,field_description:mail_message_search.field_mailing_contact__message_search
41
- #: model:ir.model.fields,field_description:mail_message_search.field_mailing_mailing__message_search
42
29
  #: model:ir.model.fields,field_description:mail_message_search.field_phone_blacklist__message_search
43
- #: model:ir.model.fields,field_description:mail_message_search.field_product_product__message_search
44
- #: model:ir.model.fields,field_description:mail_message_search.field_product_template__message_search
45
- #: model:ir.model.fields,field_description:mail_message_search.field_res_company__message_search
46
30
  #: model:ir.model.fields,field_description:mail_message_search.field_res_partner__message_search
47
- #: model:ir.model.fields,field_description:mail_message_search.field_res_partner_bank__message_search
48
31
  #: model:ir.model.fields,field_description:mail_message_search.field_res_users__message_search
49
32
  msgid "Message Search"
50
33
  msgstr ""
51
34
 
52
35
  #. module: mail_message_search
53
- #: model:ir.model.fields,help:mail_message_search.field_account_account__message_search
54
- #: model:ir.model.fields,help:mail_message_search.field_account_account_template__message_search
55
- #: model:ir.model.fields,help:mail_message_search.field_account_analytic_account__message_search
56
- #: model:ir.model.fields,help:mail_message_search.field_account_bank_statement_line__message_search
57
- #: model:ir.model.fields,help:mail_message_search.field_account_journal__message_search
58
- #: model:ir.model.fields,help:mail_message_search.field_account_move__message_search
59
- #: model:ir.model.fields,help:mail_message_search.field_account_payment__message_search
60
- #: model:ir.model.fields,help:mail_message_search.field_account_reconcile_model__message_search
61
- #: model:ir.model.fields,help:mail_message_search.field_account_setup_bank_manual_config__message_search
62
- #: model:ir.model.fields,help:mail_message_search.field_calendar_event__message_search
63
- #: model:ir.model.fields,help:mail_message_search.field_event_event__message_search
64
- #: model:ir.model.fields,help:mail_message_search.field_event_registration__message_search
36
+ #: model:ir.model.fields,help:mail_message_search.field_discuss_channel__message_search
65
37
  #: model:ir.model.fields,help:mail_message_search.field_mail_blacklist__message_search
66
- #: model:ir.model.fields,help:mail_message_search.field_mail_channel__message_search
67
38
  #: model:ir.model.fields,help:mail_message_search.field_mail_thread__message_search
68
39
  #: model:ir.model.fields,help:mail_message_search.field_mail_thread_blacklist__message_search
69
40
  #: model:ir.model.fields,help:mail_message_search.field_mail_thread_cc__message_search
41
+ #: model:ir.model.fields,help:mail_message_search.field_mail_thread_main_attachment__message_search
70
42
  #: model:ir.model.fields,help:mail_message_search.field_mail_thread_phone__message_search
71
- #: model:ir.model.fields,help:mail_message_search.field_mailing_contact__message_search
72
- #: model:ir.model.fields,help:mail_message_search.field_mailing_mailing__message_search
73
43
  #: model:ir.model.fields,help:mail_message_search.field_phone_blacklist__message_search
74
- #: model:ir.model.fields,help:mail_message_search.field_product_product__message_search
75
- #: model:ir.model.fields,help:mail_message_search.field_product_template__message_search
76
- #: model:ir.model.fields,help:mail_message_search.field_res_company__message_search
77
44
  #: model:ir.model.fields,help:mail_message_search.field_res_partner__message_search
78
- #: model:ir.model.fields,help:mail_message_search.field_res_partner_bank__message_search
79
45
  #: model:ir.model.fields,help:mail_message_search.field_res_users__message_search
80
46
  msgid "Message search, to be used only in searches"
81
47
  msgstr ""
@@ -26,8 +26,14 @@ class MailThread(models.AbstractModel):
26
26
  word_domain_list.append(expression.OR(field_domain_list))
27
27
  word_domain = expression.AND(word_domain_list)
28
28
  domain = expression.AND([[("model", "=", self._name)], word_domain])
29
- messages = self.env["mail.message"].search(domain)
30
- return [("id", "in", messages.mapped("res_id"))]
29
+ limit_value = (
30
+ self.env["ir.config_parameter"]
31
+ .sudo()
32
+ .get_param("mail_message_search.message_limit")
33
+ )
34
+ limit = int(limit_value) if limit_value else None
35
+ messages = self.env["mail.message"]._search(domain, limit=limit)
36
+ return [("id", "in", messages.subselect("res_id"))]
31
37
 
32
38
  message_search = fields.Text(
33
39
  help="Message search, to be used only in searches",
@@ -0,0 +1,7 @@
1
+ If your database is very large, you can limit how many messages a search returns to
2
+ prevent crashes.
3
+
4
+ - Go to Settings ▸ Technical ▸ System Parameters.
5
+ - Add a new parameter:
6
+ - Key: mail_message_search.message_limit
7
+ - Value: your desired limit (e.g., 5000).
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
5
  <meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6
- <title>Mail Message Search</title>
6
+ <title>README.rst</title>
7
7
  <style type="text/css">
8
8
 
9
9
  /*
@@ -360,16 +360,21 @@ ul.auto-toc {
360
360
  </style>
361
361
  </head>
362
362
  <body>
363
- <div class="document" id="mail-message-search">
364
- <h1 class="title">Mail Message Search</h1>
363
+ <div class="document">
365
364
 
365
+
366
+ <a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367
+ <img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368
+ </a>
369
+ <div class="section" id="mail-message-search">
370
+ <h1>Mail Message Search</h1>
366
371
  <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367
372
  !! This file is generated by oca-gen-addon-readme !!
368
373
  !! changes will be overwritten. !!
369
374
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:e276b9738477253e4d9e296f1f4b18c589c12bc22463090e31cb188ce2aaba2b
375
+ !! source digest: sha256:4745db82563e5c9824952a1d36acdd3728e7d8b1ac32ad07baf7b7fc600d208c
371
376
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
- <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/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/social/tree/16.0/mail_message_search"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/social-16-0/social-16-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/social&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377
+ <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/17.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-17-0/mail-17-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=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
378
  <p>This module enables searching for messages across any record that uses
374
379
  the chatter, based on their associated conversation threads. It
375
380
  dynamically adds a Message Search field to the search view of any model
@@ -380,18 +385,19 @@ message’s subject, body, sender, and reply-to fields.</p>
380
385
  <div class="contents local topic" id="contents">
381
386
  <ul class="simple">
382
387
  <li><a class="reference internal" href="#use-cases-context" id="toc-entry-1">Use Cases / Context</a></li>
383
- <li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li>
384
- <li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
385
- <li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
386
- <li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
387
- <li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
388
- <li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
388
+ <li><a class="reference internal" href="#configuration" id="toc-entry-2">Configuration</a></li>
389
+ <li><a class="reference internal" href="#usage" id="toc-entry-3">Usage</a></li>
390
+ <li><a class="reference internal" href="#bug-tracker" id="toc-entry-4">Bug Tracker</a></li>
391
+ <li><a class="reference internal" href="#credits" id="toc-entry-5">Credits</a><ul>
392
+ <li><a class="reference internal" href="#authors" id="toc-entry-6">Authors</a></li>
393
+ <li><a class="reference internal" href="#contributors" id="toc-entry-7">Contributors</a></li>
394
+ <li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
389
395
  </ul>
390
396
  </li>
391
397
  </ul>
392
398
  </div>
393
399
  <div class="section" id="use-cases-context">
394
- <h1><a class="toc-backref" href="#toc-entry-1">Use Cases / Context</a></h1>
400
+ <h2><a class="toc-backref" href="#toc-entry-1">Use Cases / Context</a></h2>
395
401
  <p>This module offers an alternative to <tt class="docutils literal">base_search_mail_content</tt>,
396
402
  designed to better support languages that do not separate words with
397
403
  spaces (e.g., Chinese, Japanese, Korean, Thai).</p>
@@ -403,29 +409,42 @@ words.</p>
403
409
  <tt class="docutils literal">mail.message</tt>, offering more reliable results in multilingual
404
410
  environments.</p>
405
411
  </div>
412
+ <div class="section" id="configuration">
413
+ <h2><a class="toc-backref" href="#toc-entry-2">Configuration</a></h2>
414
+ <p>If your database is very large, you can limit how many messages a search
415
+ returns to prevent crashes.</p>
416
+ <ul class="simple">
417
+ <li>Go to Settings ▸ Technical ▸ System Parameters.</li>
418
+ <li>Add a new parameter:<ul>
419
+ <li>Key: mail_message_search.message_limit</li>
420
+ <li>Value: your desired limit (e.g., 5000).</li>
421
+ </ul>
422
+ </li>
423
+ </ul>
424
+ </div>
406
425
  <div class="section" id="usage">
407
- <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
426
+ <h2><a class="toc-backref" href="#toc-entry-3">Usage</a></h2>
408
427
  <p>Go to any model that contains a chatter (e.g. Contacts, …). Search for
409
428
  content in field ‘Message Search’.</p>
410
429
  </div>
411
430
  <div class="section" id="bug-tracker">
412
- <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
413
- <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/issues">GitHub Issues</a>.
431
+ <h2><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h2>
432
+ <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/mail/issues">GitHub Issues</a>.
414
433
  In case of trouble, please check there if your issue has already been reported.
415
434
  If you spotted it first, help us to smash it by providing a detailed and welcomed
416
- <a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_message_search%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
435
+ <a class="reference external" href="https://github.com/OCA/mail/issues/new?body=module:%20mail_message_search%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
417
436
  <p>Do not contact contributors directly about support or help with technical issues.</p>
418
437
  </div>
419
438
  <div class="section" id="credits">
420
- <h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
439
+ <h2><a class="toc-backref" href="#toc-entry-5">Credits</a></h2>
421
440
  <div class="section" id="authors">
422
- <h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
441
+ <h3><a class="toc-backref" href="#toc-entry-6">Authors</a></h3>
423
442
  <ul class="simple">
424
443
  <li>Quartile</li>
425
444
  </ul>
426
445
  </div>
427
446
  <div class="section" id="contributors">
428
- <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
447
+ <h3><a class="toc-backref" href="#toc-entry-7">Contributors</a></h3>
429
448
  <ul class="simple">
430
449
  <li><a class="reference external" href="https://www.quartile.co">Quartile</a>:<ul>
431
450
  <li>Aung Ko Ko Lin</li>
@@ -435,7 +454,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
435
454
  </ul>
436
455
  </div>
437
456
  <div class="section" id="maintainers">
438
- <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
457
+ <h3><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h3>
439
458
  <p>This module is maintained by the OCA.</p>
440
459
  <a class="reference external image-reference" href="https://odoo-community.org">
441
460
  <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -445,10 +464,11 @@ mission is to support the collaborative development of Odoo features and
445
464
  promote its widespread use.</p>
446
465
  <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
447
466
  <p><a class="reference external image-reference" href="https://github.com/yostashiro"><img alt="yostashiro" src="https://github.com/yostashiro.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/aungkokolin1997"><img alt="aungkokolin1997" src="https://github.com/aungkokolin1997.png?size=40px" /></a></p>
448
- <p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/16.0/mail_message_search">OCA/social</a> project on GitHub.</p>
467
+ <p>This module is part of the <a class="reference external" href="https://github.com/OCA/mail/tree/17.0/mail_message_search">OCA/mail</a> project on GitHub.</p>
449
468
  <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
450
469
  </div>
451
470
  </div>
452
471
  </div>
472
+ </div>
453
473
  </body>
454
474
  </html>
@@ -14,13 +14,13 @@ class TestBaseSearchMailContent(TransactionCase):
14
14
  cls.partner_test = cls.Partner.create({"name": "Test Partner"})
15
15
 
16
16
  def test_mail_message_get_views(self):
17
- res = self.env["mail.channel"].get_views(
17
+ res = self.env["discuss.channel"].get_views(
18
18
  [[False, "search"]],
19
19
  {"load_fields": False, "load_filters": True, "toolbar": True},
20
20
  )
21
21
  self.assertIn(
22
22
  "message_search",
23
- res["models"]["mail.channel"],
23
+ res["models"]["discuss.channel"],
24
24
  "message_search field was not detected",
25
25
  )
26
26
 
@@ -1,17 +1,22 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-mail_message_search
3
- Version: 16.0.1.0.0.6
3
+ Version: 17.0.1.0.0.3
4
+ Requires-Python: >=3.10
5
+ Requires-Dist: odoo>=17.0a,<17.1dev
4
6
  Summary: Mail Message Search
5
- Home-page: https://github.com/OCA/social
7
+ Home-page: https://github.com/OCA/mail
8
+ License: AGPL-3
6
9
  Author: Quartile, Odoo Community Association (OCA)
7
10
  Author-email: support@odoo-community.org
8
- License: AGPL-3
9
11
  Classifier: Programming Language :: Python
10
12
  Classifier: Framework :: Odoo
11
- Classifier: Framework :: Odoo :: 16.0
13
+ Classifier: Framework :: Odoo :: 17.0
12
14
  Classifier: License :: OSI Approved :: GNU Affero General Public License v3
13
- Requires-Python: >=3.10
14
- Requires-Dist: odoo<16.1dev,>=16.0a
15
+ Description-Content-Type: text/x-rst
16
+
17
+ .. image:: https://odoo-community.org/readme-banner-image
18
+ :target: https://odoo-community.org/get-involved?utm_source=readme
19
+ :alt: Odoo Community Association
15
20
 
16
21
  ===================
17
22
  Mail Message Search
@@ -22,23 +27,23 @@ Mail Message Search
22
27
  !! This file is generated by oca-gen-addon-readme !!
23
28
  !! changes will be overwritten. !!
24
29
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
25
- !! source digest: sha256:e276b9738477253e4d9e296f1f4b18c589c12bc22463090e31cb188ce2aaba2b
30
+ !! source digest: sha256:4745db82563e5c9824952a1d36acdd3728e7d8b1ac32ad07baf7b7fc600d208c
26
31
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
32
 
28
33
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
29
34
  :target: https://odoo-community.org/page/development-status
30
35
  :alt: Beta
31
- .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
36
+ .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
32
37
  :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
33
38
  :alt: License: AGPL-3
34
- .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
35
- :target: https://github.com/OCA/social/tree/16.0/mail_message_search
36
- :alt: OCA/social
39
+ .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github
40
+ :target: https://github.com/OCA/mail/tree/17.0/mail_message_search
41
+ :alt: OCA/mail
37
42
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
38
- :target: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_message_search
43
+ :target: https://translation.odoo-community.org/projects/mail-17-0/mail-17-0-mail_message_search
39
44
  :alt: Translate me on Weblate
40
45
  .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
41
- :target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=16.0
46
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=17.0
42
47
  :alt: Try me on Runboat
43
48
 
44
49
  |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -72,6 +77,18 @@ This module uses direct keyword matching across key fields in
72
77
  ``mail.message``, offering more reliable results in multilingual
73
78
  environments.
74
79
 
80
+ Configuration
81
+ =============
82
+
83
+ If your database is very large, you can limit how many messages a search
84
+ returns to prevent crashes.
85
+
86
+ - Go to Settings ▸ Technical ▸ System Parameters.
87
+ - Add a new parameter:
88
+
89
+ - Key: mail_message_search.message_limit
90
+ - Value: your desired limit (e.g., 5000).
91
+
75
92
  Usage
76
93
  =====
77
94
 
@@ -81,10 +98,10 @@ content in field 'Message Search'.
81
98
  Bug Tracker
82
99
  ===========
83
100
 
84
- Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_.
101
+ Bugs are tracked on `GitHub Issues <https://github.com/OCA/mail/issues>`_.
85
102
  In case of trouble, please check there if your issue has already been reported.
86
103
  If you spotted it first, help us to smash it by providing a detailed and welcomed
87
- `feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_message_search%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
104
+ `feedback <https://github.com/OCA/mail/issues/new?body=module:%20mail_message_search%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
88
105
 
89
106
  Do not contact contributors directly about support or help with technical issues.
90
107
 
@@ -128,6 +145,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
128
145
 
129
146
  |maintainer-yostashiro| |maintainer-aungkokolin1997|
130
147
 
131
- This module is part of the `OCA/social <https://github.com/OCA/social/tree/16.0/mail_message_search>`_ project on GitHub.
148
+ This module is part of the `OCA/mail <https://github.com/OCA/mail/tree/17.0/mail_message_search>`_ project on GitHub.
132
149
 
133
150
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -1,20 +1,21 @@
1
- odoo/addons/mail_message_search/README.rst,sha256=SUaezMXdwk7vvSRp3yyDdj9MTgJKZRvqYvSzde6u9iM,4266
1
+ odoo/addons/mail_message_search/README.rst,sha256=fezVus0Rh-KAVsxeyIzpP76SlxTFxud-Ms9jeXQwHvY,4708
2
2
  odoo/addons/mail_message_search/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/mail_message_search/__manifest__.py,sha256=Y5_dOJC0N9BgWOUm3c26D6cJwLJlemFzHcNNspkGhG8,422
3
+ odoo/addons/mail_message_search/__manifest__.py,sha256=1mTWZ7WbEzJvHtfD0X6bcSNntDtmsVTiiqjEtO8DkRo,420
4
4
  odoo/addons/mail_message_search/i18n/it.po,sha256=OZtncksGvyS57cMgggfyecn01rIFtZBcpkCevGCymIA,6072
5
5
  odoo/addons/mail_message_search/i18n/ja.po,sha256=_lLkJMci7CW3VFsgPSnoNO4miE0jcaQ-rVn4icNinJc,6063
6
- odoo/addons/mail_message_search/i18n/mail_message_search.pot,sha256=WbTsQbSHkR2WrkfIH_l6TGZGPjZT1kNlGosDa7dF2nc,5826
6
+ odoo/addons/mail_message_search/i18n/mail_message_search.pot,sha256=v1CRqay5cCPLiIk9DGYH8j1OesX-qpMMonEG4WnNvRI,2547
7
7
  odoo/addons/mail_message_search/models/__init__.py,sha256=QmyI8o8B2etqhmkm1HrD8gLlBRgfenvRG_HdDvkfPUo,26
8
- odoo/addons/mail_message_search/models/mail_thread.py,sha256=GexYAGI-eGcj8_FAUC-S9LR54NBGz8P6AVFq3HTXVFw,2324
8
+ odoo/addons/mail_message_search/models/mail_thread.py,sha256=QQaQ-kdKRUKAM5q126S3zZMusbM_Ozlza4BMlVwu0Bk,2557
9
+ odoo/addons/mail_message_search/readme/CONFIGURE.md,sha256=XMivlficInRKLhIU513kiz89y3DbOxR0MVWCRpb8LUQ,270
9
10
  odoo/addons/mail_message_search/readme/CONTEXT.md,sha256=5qBltw4t57AoEdbOgEpl0oWq8QWBJyn7QxGaDR8UxJo,532
10
11
  odoo/addons/mail_message_search/readme/CONTRIBUTORS.md,sha256=mbhQ3IpuMBBgONEp9tbizV_71JQO2PEJ74zNZkfBZu8,76
11
12
  odoo/addons/mail_message_search/readme/DESCRIPTION.md,sha256=mX6-nb1A9NVTN_jVi8vo7BgZkaJmL15kN5gZZU1_xV0,366
12
13
  odoo/addons/mail_message_search/readme/USAGE.md,sha256=KCfpWiPifKB0UHlGUxo8wM3WGeNDdc7fzyIDXMFc_Ak,108
13
14
  odoo/addons/mail_message_search/static/description/icon.png,sha256=CgnOEZCwoe6f1vlLwkqFVfc2q_uwBMU0UnXN8j6X5ag,10254
14
- odoo/addons/mail_message_search/static/description/index.html,sha256=j3tqD-R_4DHuwjj8dQPwxWG3ryl9A1u4obV1kokkgOw,14091
15
+ odoo/addons/mail_message_search/static/description/index.html,sha256=aD97Ox4BdfsnCZ1gFlIKyHjvd6HMKD-6Aom13ZdrkOU,14836
15
16
  odoo/addons/mail_message_search/tests/__init__.py,sha256=n01rl1-xsfjHL4C6U3IUrT4XAAKfLd2s2IZO7DHHamo,39
16
- odoo/addons/mail_message_search/tests/test_mail_message_search.py,sha256=WlOh7qXtFvtx-2Q-VQ8FFNfIltYfbBTRgdyoWhOz8Aw,1940
17
- odoo_addon_mail_message_search-16.0.1.0.0.6.dist-info/METADATA,sha256=PGgVcXSqDeTkfFh4M8WNQS2v95AFEXoEBTxJigVLCcY,4773
18
- odoo_addon_mail_message_search-16.0.1.0.0.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
19
- odoo_addon_mail_message_search-16.0.1.0.0.6.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
20
- odoo_addon_mail_message_search-16.0.1.0.0.6.dist-info/RECORD,,
17
+ odoo/addons/mail_message_search/tests/test_mail_message_search.py,sha256=t58SZe002QlfPX-OJqmtL_fgVhFwhCYMyY5MMz6GbRM,1946
18
+ odoo_addon_mail_message_search-17.0.1.0.0.3.dist-info/METADATA,sha256=xFNNiy-7bHfGti6IY5cq0nkPQ6oP-BWMksJPibQBp_0,5250
19
+ odoo_addon_mail_message_search-17.0.1.0.0.3.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
20
+ odoo_addon_mail_message_search-17.0.1.0.0.3.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
21
+ odoo_addon_mail_message_search-17.0.1.0.0.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.45.1)
2
+ Generator: Whool 1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5