odoo-addon-mail-message-search 18.0.1.0.0.4__py3-none-any.whl → 18.0.1.0.2__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.
@@ -11,7 +11,7 @@ Mail Message Search
11
11
  !! This file is generated by oca-gen-addon-readme !!
12
12
  !! changes will be overwritten. !!
13
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14
- !! source digest: sha256:0b2d4ccefbad330ac90a9abb4a92dcf1483d4df352e85d5be54ab01b3492a20e
14
+ !! source digest: sha256:349301b4cca46679cb0a86aa50f8fe0018454f85e11325f8ddcb83c4dfdf5e57
15
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
16
 
17
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -61,6 +61,18 @@ This module uses direct keyword matching across key fields in
61
61
  ``mail.message``, offering more reliable results in multilingual
62
62
  environments.
63
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
+
64
76
  Usage
65
77
  =====
66
78
 
@@ -2,7 +2,7 @@
2
2
  # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3
3
  {
4
4
  "name": "Mail Message Search",
5
- "version": "18.0.1.0.0",
5
+ "version": "18.0.1.0.2",
6
6
  "author": "Quartile, Odoo Community Association (OCA)",
7
7
  "website": "https://github.com/OCA/mail",
8
8
  "depends": ["mail"],
@@ -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",
@@ -56,5 +62,5 @@ class MailThread(models.AbstractModel):
56
62
  # Add message_search in search view
57
63
  elem = etree.Element("field", {"name": "message_search"})
58
64
  node.addnext(elem)
59
- res["arch"] = etree.tostring(doc)
65
+ res["arch"] = etree.tostring(doc, encoding="unicode")
60
66
  return res
@@ -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).
@@ -372,7 +372,7 @@ ul.auto-toc {
372
372
  !! This file is generated by oca-gen-addon-readme !!
373
373
  !! changes will be overwritten. !!
374
374
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375
- !! source digest: sha256:0b2d4ccefbad330ac90a9abb4a92dcf1483d4df352e85d5be54ab01b3492a20e
375
+ !! source digest: sha256:349301b4cca46679cb0a86aa50f8fe0018454f85e11325f8ddcb83c4dfdf5e57
376
376
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377
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/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>
378
378
  <p>This module enables searching for messages across any record that uses
@@ -385,12 +385,13 @@ message’s subject, body, sender, and reply-to fields.</p>
385
385
  <div class="contents local topic" id="contents">
386
386
  <ul class="simple">
387
387
  <li><a class="reference internal" href="#use-cases-context" id="toc-entry-1">Use Cases / Context</a></li>
388
- <li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li>
389
- <li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
390
- <li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
391
- <li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
392
- <li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
393
- <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>
394
395
  </ul>
395
396
  </li>
396
397
  </ul>
@@ -408,13 +409,26 @@ words.</p>
408
409
  <tt class="docutils literal">mail.message</tt>, offering more reliable results in multilingual
409
410
  environments.</p>
410
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>
411
425
  <div class="section" id="usage">
412
- <h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
426
+ <h2><a class="toc-backref" href="#toc-entry-3">Usage</a></h2>
413
427
  <p>Go to any model that contains a chatter (e.g. Contacts, …). Search for
414
428
  content in field ‘Message Search’.</p>
415
429
  </div>
416
430
  <div class="section" id="bug-tracker">
417
- <h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
431
+ <h2><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h2>
418
432
  <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/mail/issues">GitHub Issues</a>.
419
433
  In case of trouble, please check there if your issue has already been reported.
420
434
  If you spotted it first, help us to smash it by providing a detailed and welcomed
@@ -422,15 +436,15 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
422
436
  <p>Do not contact contributors directly about support or help with technical issues.</p>
423
437
  </div>
424
438
  <div class="section" id="credits">
425
- <h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
439
+ <h2><a class="toc-backref" href="#toc-entry-5">Credits</a></h2>
426
440
  <div class="section" id="authors">
427
- <h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
441
+ <h3><a class="toc-backref" href="#toc-entry-6">Authors</a></h3>
428
442
  <ul class="simple">
429
443
  <li>Quartile</li>
430
444
  </ul>
431
445
  </div>
432
446
  <div class="section" id="contributors">
433
- <h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
447
+ <h3><a class="toc-backref" href="#toc-entry-7">Contributors</a></h3>
434
448
  <ul class="simple">
435
449
  <li><a class="reference external" href="https://www.quartile.co">Quartile</a>:<ul>
436
450
  <li>Aung Ko Ko Lin</li>
@@ -440,7 +454,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
440
454
  </ul>
441
455
  </div>
442
456
  <div class="section" id="maintainers">
443
- <h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
457
+ <h3><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h3>
444
458
  <p>This module is maintained by the OCA.</p>
445
459
  <a class="reference external image-reference" href="https://odoo-community.org">
446
460
  <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-mail_message_search
3
- Version: 18.0.1.0.0.4
3
+ Version: 18.0.1.0.2
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo==18.0.*
6
6
  Summary: Mail Message Search
@@ -27,7 +27,7 @@ Mail Message Search
27
27
  !! This file is generated by oca-gen-addon-readme !!
28
28
  !! changes will be overwritten. !!
29
29
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
30
- !! source digest: sha256:0b2d4ccefbad330ac90a9abb4a92dcf1483d4df352e85d5be54ab01b3492a20e
30
+ !! source digest: sha256:349301b4cca46679cb0a86aa50f8fe0018454f85e11325f8ddcb83c4dfdf5e57
31
31
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32
32
 
33
33
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -77,6 +77,18 @@ This module uses direct keyword matching across key fields in
77
77
  ``mail.message``, offering more reliable results in multilingual
78
78
  environments.
79
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
+
80
92
  Usage
81
93
  =====
82
94
 
@@ -1,19 +1,20 @@
1
- odoo/addons/mail_message_search/README.rst,sha256=Huze3m0DfplvwI4UxKNLHmVE9xFCEfAvSyV5sCTFJ1I,4411
1
+ odoo/addons/mail_message_search/README.rst,sha256=wjhuNvd58ip7ebXDP-lrUHiyK07E_5p8OnV6iyT0zw0,4708
2
2
  odoo/addons/mail_message_search/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/mail_message_search/__manifest__.py,sha256=YKKOFKr_LBfCx3-vYcXoNE_xY7yxhpEIooACeli4vWU,420
3
+ odoo/addons/mail_message_search/__manifest__.py,sha256=FDk20OrZr04N-hyiONFaq1RJo8LxS1qWGfKlt7XMHcM,420
4
4
  odoo/addons/mail_message_search/i18n/it.po,sha256=HAH3H6wOE6Wk1SBoYungwiL68K1N8M6S1_OkOAJQRFk,6273
5
5
  odoo/addons/mail_message_search/i18n/mail_message_search.pot,sha256=v2PWAEDTuffbQ_Pb8PMOB2yPDdoGs1CQHbGAxfxXChs,6027
6
6
  odoo/addons/mail_message_search/models/__init__.py,sha256=QmyI8o8B2etqhmkm1HrD8gLlBRgfenvRG_HdDvkfPUo,26
7
- odoo/addons/mail_message_search/models/mail_thread.py,sha256=GexYAGI-eGcj8_FAUC-S9LR54NBGz8P6AVFq3HTXVFw,2324
7
+ odoo/addons/mail_message_search/models/mail_thread.py,sha256=cWfG06FPFDvIaUSZpLmZV1NL3rubOO7j_ctiI08WFAE,2577
8
+ odoo/addons/mail_message_search/readme/CONFIGURE.md,sha256=XMivlficInRKLhIU513kiz89y3DbOxR0MVWCRpb8LUQ,270
8
9
  odoo/addons/mail_message_search/readme/CONTEXT.md,sha256=5qBltw4t57AoEdbOgEpl0oWq8QWBJyn7QxGaDR8UxJo,532
9
10
  odoo/addons/mail_message_search/readme/CONTRIBUTORS.md,sha256=mbhQ3IpuMBBgONEp9tbizV_71JQO2PEJ74zNZkfBZu8,76
10
11
  odoo/addons/mail_message_search/readme/DESCRIPTION.md,sha256=mX6-nb1A9NVTN_jVi8vo7BgZkaJmL15kN5gZZU1_xV0,366
11
12
  odoo/addons/mail_message_search/readme/USAGE.md,sha256=KCfpWiPifKB0UHlGUxo8wM3WGeNDdc7fzyIDXMFc_Ak,108
12
13
  odoo/addons/mail_message_search/static/description/icon.png,sha256=CgnOEZCwoe6f1vlLwkqFVfc2q_uwBMU0UnXN8j6X5ag,10254
13
- odoo/addons/mail_message_search/static/description/index.html,sha256=bH7IKDkYMJExO3tKeZSQO-rdYMcqLiUj41Wr1nHiHw0,14289
14
+ odoo/addons/mail_message_search/static/description/index.html,sha256=TQTtKrOyVMBDI2bdhnuJPTh7yuakh80cWSC4y6iL8po,14836
14
15
  odoo/addons/mail_message_search/tests/__init__.py,sha256=n01rl1-xsfjHL4C6U3IUrT4XAAKfLd2s2IZO7DHHamo,39
15
16
  odoo/addons/mail_message_search/tests/test_mail_message_search.py,sha256=rjoZ1SSrG89K__qQirSLfgr_ZuTLP-kS0khWHLgbXGI,1956
16
- odoo_addon_mail_message_search-18.0.1.0.0.4.dist-info/METADATA,sha256=GFmq2C40HLwNp2EoxhDmVbi-96H0L6mLEZYoToRetiw,4945
17
- odoo_addon_mail_message_search-18.0.1.0.0.4.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
18
- odoo_addon_mail_message_search-18.0.1.0.0.4.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
19
- odoo_addon_mail_message_search-18.0.1.0.0.4.dist-info/RECORD,,
17
+ odoo_addon_mail_message_search-18.0.1.0.2.dist-info/METADATA,sha256=4P69ZdnIy737xxMvgUKuDA51VsWX0cFUhfbIPdpZRK4,5240
18
+ odoo_addon_mail_message_search-18.0.1.0.2.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
19
+ odoo_addon_mail_message_search-18.0.1.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
20
+ odoo_addon_mail_message_search-18.0.1.0.2.dist-info/RECORD,,