cubells
7 years ago
committed by
ernesto
14 changed files with 83 additions and 157 deletions
-
87base_search_mail_content/README.rst
-
6base_search_mail_content/__init__.py
-
14base_search_mail_content/__manifest__.py
-
38base_search_mail_content/i18n/es.po
-
7base_search_mail_content/models/__init__.py
-
10base_search_mail_content/models/mail_thread.py
-
17base_search_mail_content/models/trgm_index.py
-
5base_search_mail_content/readme/CONTRIBUTORS.rst
-
19base_search_mail_content/readme/DESCRIPTION.rst
-
6base_search_mail_content/readme/INSTALL.rst
-
2base_search_mail_content/readme/USAGE.rst
-
1base_search_mail_content/tests/__init__.py
-
1base_search_mail_content/tests/test_base_search_mail_content.py
-
27base_search_mail_content/views/trgm_index_view.xml
@ -1,86 +1 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
|
|||
======================== |
|||
Base Search Mail Content |
|||
======================== |
|||
|
|||
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, |
|||
like project issues or helpdesk tickets. |
|||
|
|||
A project issue or helpdesk ticket can contain tens of mails or notes |
|||
associated, based on the feedback that the person responsible for the ticket |
|||
maintains, including conversations with the person that raised the issue. |
|||
|
|||
A user may often want to find issues or tickets, based on the past |
|||
conversations that were recorded, as much as he or she needs to search |
|||
in their mail for past conversations. |
|||
|
|||
This module will add dynamically a field 'message_content' to the search view of |
|||
any model that inherits from the mail.thread. |
|||
|
|||
The current search capabilities include searching into the subject, body, |
|||
email from, reply to and record name. |
|||
|
|||
Installation |
|||
============ |
|||
|
|||
This module depends on the module 'base_search_fuzzy' to ensure that |
|||
searches on emails are based on indexes. Please read carefully the |
|||
`install instructions <https://github.com/OCA/server-tools/blob/10.0/base_search_fuzzy/README.rst>`_. |
|||
|
|||
This module installs by default the indexes that are required to |
|||
perform the searches on mail messages. |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
Go to any model that contains a chatter (e.g. Contacts, ...). Search |
|||
for content in field 'Message Content'. |
|||
|
|||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
|||
:alt: Try me on Runbot |
|||
:target: https://runbot.odoo-community.org/runbot/server-tools/10.0 |
|||
|
|||
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 smashing it by providing a detailed and welcomed feedback. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Images |
|||
------ |
|||
|
|||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Jordi Ballester Alomar <jordi.ballester@eficent.com> |
|||
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com> |
|||
* Lois Rilo Antelo <lois.rilo@eficent.com> |
|||
* Aaron Henriquez <ahenriquez@eficent.com> |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
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. |
|||
|
|||
To contribute to this module, please visit https://odoo-community.org. |
|||
This file is going to be generated by oca-gen-addon-readme. |
@ -1,7 +1,7 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016 Eficent Business and IT Consulting Services S.L. |
|||
# Copyright 2016 Eficent Business and IT Consulting Services S.L. |
|||
# (http://www.eficent.com) |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>) |
|||
# Copyright 2016 Serpent Consulting Services Pvt. Ltd. |
|||
# (<http://www.serpentcs.com>) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import models |
@ -1,19 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016 Eficent Business and IT Consulting Services S.L. |
|||
# Copyright 2016 Eficent Business and IT Consulting Services S.L. |
|||
# (http://www.eficent.com) |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>) |
|||
# Copyright 2016 Serpent Consulting Services Pvt. Ltd. |
|||
# (<http://www.serpentcs.com>) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
{ |
|||
"name": "Base Search Mail Content", |
|||
"version": "10.0.1.0.0", |
|||
"version": "11.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", |
|||
"views/trgm_index_view.xml"], |
|||
"data": [ |
|||
"data/trgm_index_data.xml", |
|||
], |
|||
"depends": ["mail", "base_search_fuzzy"], |
|||
"license": "AGPL-3", |
|||
'installable': True, |
|||
|
@ -1,7 +1,8 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016-17 Eficent Business and IT Consulting Services S.L. |
|||
# Copyright 2016-17 Eficent Business and IT Consulting Services S.L. |
|||
# (http://www.eficent.com) |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>) |
|||
# Copyright 2016 Serpent Consulting Services Pvt. Ltd. |
|||
# (<http://www.serpentcs.com>) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import mail_thread |
|||
from . import trgm_index |
@ -0,0 +1,17 @@ |
|||
# Copyright 2016 Eficent Business and IT Consulting Services S.L. |
|||
# Copyright 2016 Serpent Consulting Services Pvt. Ltd. |
|||
# Copyright 2017 LasLabs Inc. |
|||
# Copyright 2018 Tecnativa - Vicent Cubells |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
from odoo import fields, models |
|||
|
|||
|
|||
class TrgmIndex(models.Model): |
|||
_inherit = 'trgm.index' |
|||
|
|||
# We take advantage of field inheritance to redefine help instead of do |
|||
# inheritance in views that throws an error |
|||
field_id = fields.Many2one( |
|||
help="You can either select a field of type 'text', 'char' or 'html'." |
|||
) |
@ -0,0 +1,5 @@ |
|||
* Jordi Ballester Alomar <jordi.ballester@eficent.com> |
|||
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com> |
|||
* Lois Rilo Antelo <lois.rilo@eficent.com> |
|||
* Aaron Henriquez <ahenriquez@eficent.com> |
|||
* Vicent Cubells <vicent.cubells@tecnativa.com> |
@ -0,0 +1,19 @@ |
|||
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, |
|||
like project issues or helpdesk tickets. |
|||
|
|||
A project issue or helpdesk ticket can contain tens of mails or notes |
|||
associated, based on the feedback that the person responsible for the ticket |
|||
maintains, including conversations with the person that raised the issue. |
|||
|
|||
A user may often want to find issues or tickets, based on the past |
|||
conversations that were recorded, as much as he or she needs to search |
|||
in their mail for past conversations. |
|||
|
|||
This module will add dynamically a field 'message_content' to the search view |
|||
of any model that inherits from the mail.thread. |
|||
|
|||
The current search capabilities include searching into the subject, body, |
|||
email from, reply to and record name. |
@ -0,0 +1,6 @@ |
|||
This module depends on the module 'base_search_fuzzy' to ensure that |
|||
searches on emails are based on indexes. Please read carefully the |
|||
`install instructions <https://github.com/OCA/server-tools/blob/11.0/base_search_fuzzy>`_. |
|||
|
|||
This module installs by default the indexes that are required to |
|||
perform the searches on mail messages. |
@ -0,0 +1,2 @@ |
|||
Go to any model that contains a chatter (e.g. Contacts, ...). Search |
|||
for content in field 'Message Content'. |
@ -1,3 +1,2 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
from . import test_base_search_mail_content |
@ -1,27 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
|
|||
<record model="ir.ui.view" id="trgm_index_view_form"> |
|||
<field name="name">trgm.index.view.form</field> |
|||
<field name="model">trgm.index</field> |
|||
<field name="inherit_id" ref="base_search_fuzzy.trgm_index_view_form"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="field_id" position="attributes"> |
|||
<attribute name="domain">[('ttype', 'in', ['char', 'text', 'html'])]</attribute> |
|||
<attribute name="help">"You can either select a field of type 'text', 'char' or 'html'."</attribute> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.ui.view" id="trgm_index_view_tree"> |
|||
<field name="name">trgm.index.view.tree</field> |
|||
<field name="model">trgm.index</field> |
|||
<field name="inherit_id" ref="base_search_fuzzy.trgm_index_view_tree"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="field_id" position="attributes"> |
|||
<attribute name="help">"You can either select a field of type 'text', 'char' or 'html'."</attribute> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue